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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x78
xor edx, edx
cmp eax, edx
push ebp
mov ebp, ecx
jne 0x49d679
mov al, 1
pop ebp
add esp, 0x78
ret 4
push edi
mov dword [esp + 0x1c], eax
xor eax, eax
cmp ebp, edx
mov ecx, 0xb
lea edi, [esp + 0x52]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x78], edx
mov word [esp + 0x50], dx
je 0x49d6a3
lea eax, [ebp + 4]
mov dword [esp + 0x7c], eax
jmp 0x49d6a7
mov dword [esp + 0x7c], edx
mov eax, dword [ebp + 0x8c]
cmp eax, edx
mov dword [esp + 0x54], 1
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], edx
jne 0x49d6c7
mov dword [esp + 0x14], edx
jmp 0x49d6d6
mov ecx, dword [ebp + 0x90]
sub ecx, eax
sar ecx, 4
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x14], edx
push ebx
push esi
mov dword [esp + 0x2c], edx
jbe 0x49d920
mov dword [esp + 0x18], edx
lea ebx, [ebx]
mov ecx, dword [ebp + 0x8c]
mov eax, dword [esp + 0x18]
mov edi, dword [eax + ecx]
add eax, ecx
mov eax, dword [eax + 4]
cmp eax, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x30], eax
mov bl, 1
mov dword [esp + 0x28], edx
jbe 0x49d8d8
mov esi, dword [edi + 8]
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.00496650
movsx edx, word [esi + 0x118]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
add eax, edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x38], eax
movsx eax, word [esi + 0x118]
add ecx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x40], ecx
movsx ecx, word [esi + 0x11a]
add edx, ecx
mov dword [esp + 0x3c], edx
movsx edx, word [esi + 0x11a]
add eax, edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
cmp dword [esi + 0x12c], eax
je 0x49d832
mov eax, dword [esp + 0x80]
test eax, eax
je 0x49d7b9
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x64]
push ecx
mov ecx, ebp
call fcn.004986a0
test al, al
je 0x49d92c
inc word [esp + 0x58]
mov dword [esp + 0x80], 0
mov eax, dword [esi + 0x12c]
test eax, eax
je 0x49d828
push eax
mov ecx, ebp
mov dword [esp + 0x18], edi
call fcn.0049c9b0
mov dword [esp + 0x80], eax
mov al, byte [ebp + 0x60]
test al, al
mov eax, 0x20001
mov dword [esp + 0x70], eax
jns 0x49d7f5
mov dword [esp + 0x7c], eax
mov eax, 0x20000
mov dword [esp + 0x78], eax
jmp 0x49d802
mov dword [esp + 0x78], eax
mov eax, 0x20000
mov dword [esp + 0x7c], eax
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
xor bl, bl
mov eax, dword [esi + 0x12c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x80]
test eax, eax
je 0x49d8b9
test bl, bl
movzx ecx, word [esp + 0x58]
mov dword [esi + 0x130], ecx
je 0x49d8a4
mov esi, dword [esp + 0x24]
add word [esp + 0x58], si
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x64]
push edx
mov ecx, ebp
call fcn.004986a0
test al, al
je 0x49d95c
mov eax, dword [esp + 0x38]
sub word [esp + 0x58], si
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x44]
inc esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
jmp 0x49d8b9
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x4c]
push edx
mov eax, edx
push eax
call fcn.004a6170
add esp, 0xc
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edi, dword [edi]
xor bl, bl
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], edi
jb 0x49d718
xor edx, edx
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc eax
add esi, 0x10
cmp eax, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], esi
jb 0x49d6f0
cmp dword [esp + 0x80], edx
je 0x49d920
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x64]
push eax
mov ecx, ebp
call fcn.004986a0
test al, al
je 0x49d980
pop esi
pop ebx
pop edi
mov al, 1
pop ebp
add esp, 0x78
ret 4
push 0x530474
lea ecx, [esp + 0x34]
push 0
push ecx
mov dword [esp + 0x3c], 0x53d28c
mov dword [esp + 0x40], 0x1319
call fcn.0041ce50
add esp, 0xc
pop esi
pop ebx
pop edi
xor al, al
pop ebp
add esp, 0x78
ret 4
push 0x530474
lea edx, [esp + 0x34]
push 0
push edx
mov dword [esp + 0x3c], 0x53d28c
mov dword [esp + 0x40], 0x135d
call fcn.0041ce50
add esp, 0xc
pop esi
pop ebx
pop edi
xor al, al
pop ebp
add esp, 0x78
ret 4