Function at 0x4b1020
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55c76e
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [str.._AVCInvalidArgException__]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4b1069
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
call fcn.004f5fb3
jmp 0x4b1557
mov ecx, dword [ebp + 8]
add ecx, 4
mov dword [esp + 0x24], ecx
call fcn.00411740
test eax, eax
je 0x4b1554
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 0
jne 0x4b109d
mov esi, dword [ebx]
call fcn.0044ec90
cmp dword [eax + 0x88], 0
je 0x4b1554
mov eax, dword [ebx]
push eax
lea ecx, [esp + 0x44]
call fcn.004f5d21
mov dword [esp + 0xb0], 0
mov edi, dword [ebx]
lea esi, [esp + 0x94]
call fcn.0043fc00
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00416b60
lea ecx, [esp + 0x30]
call fcn.004f577f
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0xb4], 1
call fcn.00411770
lea ecx, [esp + 0x64]
call fcn.0040f030
mov ecx, esi
mov byte [esp + 0xb0], 2
call fcn.00410a70
push eax
mov ecx, esi
call fcn.00416af0
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x70]
call fcn.00416a40
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x34]
mov edi, dword [0x55e198]
push ecx
push edx
call edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x6c], eax
call fcn.0040ee00
mov dword [esp + 0x28], 0x5605e4
lea ecx, [esp + 0x14]
mov byte [esp + 0xb0], 3
call fcn.004145f0
push eax
call dword [0x55e11c]
push eax
lea ecx, [esp + 0x2c]
call fcn.004f5f5b
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
call fcn.004f5964
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1a0]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x28]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x2c]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x30]
mov dword [eax + 0xc], esi
lea eax, [esp + 0x40]
push eax
call edx
push 0
lea ecx, [esp + 0x34]
call fcn.004f5964
lea ecx, [esp + 0x54]
call fcn.004f577f
mov byte [esp + 0xb0], 4
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x58]
call fcn.00411770
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4b11da
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x58]
push eax
push ecx
call edi
cmp dword [ebp + 0x10], 0
mov dword [esp + 0x70], eax
jne 0x4b1278
push 1
lea edx, [esp + 0x18]
push edx
push ebx
call fcn.004b0e60
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0xcc0020
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x24]
call fcn.00410a70
push eax
lea ecx, [esp + 0x28]
call fcn.00416af0
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x74]
call fcn.004116d0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0xcc0020
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x24]
call fcn.00410a70
push eax
lea ecx, [esp + 0x28]
call fcn.00416af0
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x60]
call fcn.004116d0
jmp 0x4b14c4
push 0x38
call fcn.004dd6e4
add esp, 4
test eax, eax
je 0x4b1291
mov esi, eax
call fcn.004b08e0
mov ebx, eax
jmp 0x4b1293
xor ebx, ebx
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x10], ecx
mov edx, dword [esp + 0x18]
mov dword [ebx + 0x14], edx
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x18], eax
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x20], 1
mov esi, dword [esp + 0x44]
lea ecx, [esp + 0x14]
call fcn.00410a70
push eax
lea ecx, [esp + 0x18]
call fcn.00416af0
push eax
push esi
lea esi, [ebx + 4]
call fcn.00425de0
mov dword [ebx], eax
mov esi, dword [esp + 0x50]
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.00410a70
push eax
lea ecx, [esp + 0x18]
call fcn.00416af0
push eax
push esi
lea esi, [ebx + 0xc]
call fcn.00425de0
add esp, 0xc
lea ecx, [esp + 0x74]
mov dword [ebx + 8], eax
call fcn.004f577f
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x78]
mov byte [esp + 0xb4], 5
call fcn.00411770
lea ecx, [esp + 0x84]
call fcn.004f577f
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0xb4], 6
call fcn.00411770
mov ecx, dword [ebx]
mov edx, dword [esp + 0x78]
push ecx
push edx
call edi
mov ecx, dword [esp + 0x88]
mov esi, eax
mov eax, dword [ebx + 8]
push eax
push ecx
call edi
mov edx, dword [esp + 0x18]
push 0xcc0020
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x24]
call fcn.00410a70
push eax
lea ecx, [esp + 0x28]
call fcn.00416af0
push eax
push 0
push 0
lea ecx, [esp + 0x94]
call fcn.004116d0
mov edx, dword [esp + 0x18]
push 0xcc0020
push edx
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x24]
call fcn.00410a70
push eax
lea ecx, [esp + 0x28]
call fcn.00416af0
push eax
push 0
push 0
lea ecx, [esp + 0xa4]
call fcn.004116d0
push 0xcc0020
push 0
push 0
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x24]
call fcn.00410a70
push eax
lea ecx, [esp + 0x28]
call fcn.00416af0
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x74]
call fcn.004116d0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x88]
push edx
push eax
call edi
mov ecx, dword [esp + 0x78]
push esi
push ecx
call edi
lea ecx, [esp + 0x14]
call fcn.00416af0
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00410a70
imul esi, eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
add esi, esi
add esi, esi
cmp esi, 4
jb 0x4b1464
lea ebx, [ebx]
mov edx, dword [ecx]
cmp edx, dword [eax]
jne 0x4b1488
sub esi, 4
add eax, 4
add ecx, 4
cmp esi, 4
jae 0x4b1450
test esi, esi
je 0x4b1498
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4b1488
cmp esi, 1
jbe 0x4b1498
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4b1488
cmp esi, 2
jbe 0x4b1498
mov al, byte [eax + 2]
cmp al, byte [ecx + 2]
je 0x4b1498
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x44]
push ecx
call fcn.004b0fc0
jmp 0x4b149f
mov esi, ebx
call fcn.004b0a50
lea ecx, [esp + 0x84]
mov byte [esp + 0xb0], 5
call fcn.004f5d08
lea ecx, [esp + 0x74]
mov byte [esp + 0xb0], 4
call fcn.004f5d08
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x58]
push edx
push eax
call edi
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x34]
push ecx
push edx
call edi
lea ecx, [esp + 0x54]
mov byte [esp + 0xb0], 3
call fcn.004f5d08
mov byte [esp + 0xb0], 2
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x5605e4
call fcn.0040ee60
lea ecx, [esp + 0x64]
mov byte [esp + 0xb0], 1
call fcn.0040ede0
lea ecx, [esp + 0x30]
mov byte [esp + 0xb0], 0
call fcn.004f5d08
lea ecx, [esp + 0x40]
mov dword [esp + 0xb0], 0xffffffff
call fcn.004f5d75
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push 0
mov dword [esi + 0xc], 1
mov ecx, dword [eax + 0x20]
push edi
push ecx
call dword [0x55e6e0]
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc