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

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x60
mov edx, dword [esp + 0x6c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x84]
add edx, eax
sub edi, eax
xor ebx, ebx
xor esi, esi
mov ebp, ecx
test edi, edi
mov dword [esp + 0x7c], edx
jle 0x49c9e2
lea eax, [esp + 0x48]
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x7c]
lea eax, [esi + 1]
mov dword [esp + 0x84], eax
mov dl, byte [ecx + eax - 1]
push edx
call fcn.0049cc70
add esp, 4
test al, al
je 0x49c9d7
mov eax, dword [esp + 0x80]
test esi, esi
jle 0x49c9c3
mov dword [eax], esi
inc ebx
add eax, 4
mov ecx, dword [esp + 0x84]
inc ebx
mov dword [eax], ecx
add eax, 4
mov dword [esp + 0x80], eax
mov esi, dword [esp + 0x84]
cmp esi, edi
jl 0x49c993
mov dword [esp + ebx*4 + 0x48], edi
inc ebx
xor edi, edi
test ebx, ebx
jle 0x49cc57
mov esi, dword [esp + 0x74]
lea edx, [esp + 0x48]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
mov ebx, dword [eax]
cmp ebx, edi
jle 0x49cc3d
mov ecx, dword [esp + 0x7c]
mov dl, byte [edi + ecx]
lea eax, [edi + ecx]
push edx
mov dword [esp + 0x88], eax
call fcn.0049cc70
add esp, 4
test al, al
je 0x49cb91
mov eax, dword [esp + 0x78]
mov edi, dword [eax]
add edi, 0xe
mov dword [ebp + 0x38], edi
mov ecx, dword [eax]
mov al, byte [esp + 0xa0]
mov dword [esp + 0x80], ecx
test al, al
je 0x49cb56
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x90]
add eax, edx
cdq
sub eax, edx
mov edx, dword [ebp + 0x60]
push edx
mov ebx, eax
sub esp, 0x10
mov eax, dword [esi]
mov edx, esp
sar ebx, 1
mov dword [edx], ecx
mov ecx, dword [esp + 0xa4]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0xac]
mov dword [edx + 8], edi
mov dword [edx + 0xc], ecx
mov ecx, esi
call dword [eax + 0x38]
mov ecx, dword [ebp + 0x68]
mov edx, dword [esp + 0x80]
push ecx
sub esp, 0x10
lea eax, [edx + 1]
mov ecx, esp
mov edx, dword [esi]
mov dword [ecx], eax
mov eax, dword [esp + 0xa4]
inc eax
mov dword [ecx + 4], eax
lea eax, [edi - 2]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xac]
dec eax
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov al, byte [ecx]
cmp al, 1
lea eax, [edx + 6]
lea edx, [eax - 4]
jne 0x49cb19
lea ecx, [ebx + 2]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
lea edx, [eax + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0x60]
mov dword [esp + 0x20], edx
mov edx, ecx
add ebx, 0xfffffffe
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
push edx
mov dword [esp + 0x34], ebx
push 3
lea ecx, [esp + 0x24]
jmp 0x49cb49
lea ecx, [ebx - 2]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
lea edx, [eax + 4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 0x60]
mov dword [esp + 0x38], edx
mov edx, ecx
add ebx, 2
push ecx
mov dword [esp + 0x44], eax
mov eax, dword [esi]
push edx
mov dword [esp + 0x4c], ebx
push 3
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov al, byte [edx]
cmp al, 1
jne 0x49cb84
lea eax, [ebp + 0x14]
mov edx, dword [esp + 0x98]
mov dword [eax], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edx
jmp 0x49cc31
cmp al, 2
jne 0x49cc31
lea eax, [ebp + 0x24]
jmp 0x49cb66
mov ecx, dword [esp + 0x78]
sub ebx, edi
lea eax, [ebp + 0xc]
push ebx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x84], edx
mov edx, dword [esi]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x58]
mov ecx, dword [esp + 0x80]
mov edi, eax
mov al, byte [esp + 0xa0]
add edi, ecx
test al, al
je 0x49cc31
mov al, byte [esp + 0x9c]
test al, al
je 0x49cbe1
mov edx, dword [ebp + 0x70]
mov dword [esp + 0x80], edx
jmp 0x49cbeb
mov eax, dword [ebp + 0x68]
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x60]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x8c]
push ebx
push eax
mov eax, dword [esp + 0x98]
push eax
lea eax, [ebp + 0xc]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xb8]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xc0]
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x48]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x10]
mov dword [edx], edi
mov edi, dword [eax]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x49ca01
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x30