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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xac]
cmp eax, dword [ecx + 8]
jbe 0x49dc8f
sub esp, 0x12c
lea edi, [esp + 0x138]
xor eax, eax
call fcn.00462613
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov ecx, dword [esp + 0x130]
mov dword [esp + 0xcc], ecx
lea edi, [esp + 0xdc]
call fcn.00462619
lea edi, [esp + 0xf8]
call fcn.00462613
lea ecx, [esp + 0xf8]
mov dword [esp + 0xe8], ecx
call fcn.0044eb20
mov ecx, dword [esp]
mov dword [esp + 0xe4], ecx
mov eax, 1
lea ecx, [esp + 0xcc]
mov edx, 1
xor ebx, ebx
lea ebp, [esp + 0x3c]
xor esi, esi
xor edi, edi
jmp 0x49d550
mov esi, dword [esp + 0xc8]
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x40]
mov eax, ecx
mov ecx, ebp
mov edx, ebx
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0xa0]
test eax, eax
je 0x49d595
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x90], esi
mov dword [esp + 0x88], eax
xor eax, eax
mov dword [esp + 0x74], eax
xor eax, eax
mov dword [esp + 0xc8], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x88]
jmp 0x49d5e6
xchg edi, eax
test al, al
xchg edi, eax
je 0x49d52d
xchg edi, eax
mov byte [esp + 0x16c], al
xchg edi, eax
add esp, 0x12c
ret
mov ecx, dword [esp + 0xc4]
add ecx, 0x10
mov edx, dword [esp + 0x74]
inc edx
mov dword [esp + 0x74], edx
mov dword [esp + 0xc8], esi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x90]
mov dword [esp + 0x80], ecx
mov ecx, ebx
mov ebx, ebp
mov ebp, ecx
mov ecx, dword [esp + 0x80]
mov esi, dword [esp + 0x74]
cmp esi, eax
jge 0x49d58f
mov dword [esp + 0x94], ebp
mov dword [esp + 0x44], ebx
xchg edi, eax
mov byte [esp + 0x3f], al
xchg edi, eax
mov dword [esp + 0xc4], ecx
mov eax, dword [ecx + 8]
mov dword [esp + 0x70], eax
mov edx, dword [ecx]
mov dword [esp + 0xc0], edx
mov ebx, dword [ecx + 4]
mov dword [esp + 0xbc], ebx
lea esi, [0x5a7ae0]
mov dword [esp], esi
lea edi, [esp + 0xdc]
mov dword [esp + 4], edi
mov dword [esp + 8], edx
call fcn.0040e710
mov eax, dword [esp + 0xc]
movzx eax, byte [eax]
test al, al
je 0x49d668
movzx edi, byte [esp + 0x3f]
mov esi, dword [esp + 0xc8]
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x94]
jmp 0x49d5a5
lea eax, [0x5a7ae0]
mov dword [esp], eax
lea ecx, [esp + 0xdc]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0xc0]
mov dword [esp + 8], edx
call fcn.0040ecb0
mov eax, dword [esp + 0xc]
mov byte [eax], 1
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x6c], ecx
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x94]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0xc8]
movzx edi, byte [esp + 0x3f]
mov dword [esp + 0x78], eax
xor eax, eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x78]
jmp 0x49d6f7
mov eax, dword [esp + 0x40]
jmp 0x49d5a5
mov ebx, dword [esp + 0x50]
inc ebx
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x50], ebx
mov ebp, esi
mov ebx, edi
mov edi, edx
mov esi, ecx
mov edx, eax
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x50]
cmp edx, ecx
jge 0x49d6cc
mov dword [esp + 0x68], ebp
mov dword [esp + 0xb8], ebx
mov ebx, dword [eax + 0x24]
mov ebp, dword [eax + 0x28]
cmp edx, ebp
jae 0x49dc85
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb0], esi
xchg edi, eax
mov byte [esp + 0x3e], al
xchg edi, eax
lea eax, [edx + edx*2]
mov dword [esp + 0x64], eax
mov ecx, dword [ebx + eax*4]
mov dword [esp], ecx
call fcn.0049bab0
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0xb4]
mov edx, dword [ecx + eax*4]
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
movzx edx, byte [edx]
test dl, 8
je 0x49d7a7
mov eax, dword [ecx + eax*4 + 4]
movzx ecx, byte [eax + 0xf]
and ecx, 0x1f
cmp ecx, 0x16
jne 0x49d7a9
mov dword [esp + 0x54], ebp
mov dword [esp + 0x9c], ebx
mov dword [esp], eax
call fcn.0049c730
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov eax, dword [eax + 0x84]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x54]
jmp 0x49d7a9
xor eax, eax
mov dword [esp + 0xac], eax
mov edx, dword [esp + 0x134]
mov ecx, dword [edx]
mov dword [esp], ebx
mov dword [esp + 4], ebp
call ecx
movzx eax, byte [esp + 8]
test al, al
jne 0x49dad5
movzx edx, byte [esp + 0x3e]
test dl, dl
jne 0x49daba
mov ebx, dword [esp + 0xac]
test ebx, ebx
je 0x49daba
movzx ebp, byte [ebx + 0xf]
and ebp, 0x1f
cmp ebp, 0x19
jne 0x49daba
lea ecx, [0x5a7b20]
mov dword [esp], ecx
mov edx, dword [esp + 0xb0]
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.0040e710
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jg 0x49da6c
mov eax, dword [esp + 0xb0]
test eax, eax
jne 0x49d83b
call fcn.0040c730
mov esi, dword [esp]
mov eax, esi
mov dword [esp + 0xc8], eax
lea ecx, [0x5a7b20]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov edx, dword [esp + 0xac]
mov dword [esp + 8], edx
call fcn.0040ecb0
mov eax, dword [esp + 0xc]
mov dword [eax], 1
mov eax, dword [esp + 0xc0]
lea edx, [0x5a7b20]
mov dword [esp], edx
mov ebx, dword [esp + 0x90]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.0040e710
mov eax, dword [esp + 0xc]
cmp dword [eax], 1
jle 0x49d8c4
lea eax, [0x5a7b20]
mov dword [esp], eax
mov ecx, dword [esp + 0xc8]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0xac]
mov dword [esp + 8], edx
call fcn.0040ecb0
mov eax, dword [esp + 0xc]
mov dword [eax], 2
mov eax, dword [esp + 0x70]
test eax, eax
ja 0x49d8d4
xor edx, edx
xor ecx, ecx
xor ebx, ebx
jmp 0x49d90e
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
lea ecx, [0x5a6420]
mov dword [esp + 0x10], ecx
call fcn.00449e30
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, ecx
mov ecx, eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x48], ebx
mov dword [esp], ecx
mov ebp, dword [esp + 0xbc]
mov dword [esp + 4], ebp
shl eax, 2
mov dword [esp + 8], eax
call fcn.00462d10
mov eax, dword [esp + 0x48]
inc eax
mov ecx, dword [esp + 0x4c]
cmp ecx, eax
jb 0x49d951
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x4c]
jmp 0x49d986
mov edx, dword [esp + 0x98]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x5a6420]
mov dword [esp + 0x10], eax
call fcn.00449e30
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x50]
mov dword [ecx + eax*4 - 4], ebx
mov ebp, dword [esp + 0x40]
inc ebp
mov esi, dword [esp + 0x68]
cmp esi, ebp
jb 0x49d9a4
mov edi, dword [esp + 0xb8]
jmp 0x49d9ff
mov dword [esp + 0x98], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], 1
lea eax, [0x5b3ee0]
mov dword [esp + 0x10], eax
call fcn.00449e30
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x4c]
mov edi, ebx
mov esi, eax
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x50]
lea ebx, [ebp - 1]
shl ebx, 4
mov dword [edi + ebx + 8], eax
mov dword [edi + ebx + 0xc], edx
mov edx, dword [0x7adde0]
mov eax, ebp
lea ebp, [edi + ebx]
mov dword [esp + 0xa8], ebp
lea ebp, [edi + ebx + 4]
test edx, edx
jne 0x49da37
mov edx, dword [esp + 0xac]
mov dword [edi + ebx], edx
mov dword [edi + ebx + 4], ecx
jmp 0x49da5b
mov edx, edi
mov edi, dword [esp + 0xa8]
mov ebx, eax
mov eax, dword [esp + 0xac]
call fcn.00462400
mov edi, ebp
mov eax, ecx
call fcn.00462400
mov eax, ebx
mov edi, edx
movzx edx, byte [esp + 0x3e]
mov ecx, dword [esp + 0xc8]
jmp 0x49d6d5
lea eax, [0x5a7b20]
mov dword [esp], eax
mov ecx, dword [esp + 0xb0]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0xac]
mov dword [esp + 8], edx
call fcn.0040ecb0
mov eax, dword [esp + 0xc]
mov dword [eax], 2
movzx edx, byte [esp + 0x3e]
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0xb8]
jmp 0x49d6d5
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0xb8]
jmp 0x49d6d5
mov eax, dword [esp + 0xc0]
lea edx, [0x5a7b20]
mov dword [esp], edx
mov ebx, dword [esp + 0x90]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.0040e710
mov eax, dword [esp + 0xc]
cmp dword [eax], 1
jg 0x49dc68
movzx ecx, byte [esp + 0x3e]
test cl, cl
jne 0x49dc68
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
call fcn.0049d320
lea edi, [esp + 0x138]
lea esi, [esp + 8]
call fcn.00462aae
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
mov eax, dword [esp + 0x70]
test eax, eax
ja 0x49db6b
xor ecx, ecx
xor edx, edx
xor ebx, ebx
jmp 0x49dba5
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
lea ecx, [0x5a6420]
mov dword [esp + 0x10], ecx
call fcn.00449e30
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, ecx
mov ecx, eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], ebx
mov dword [esp], ecx
mov ebp, dword [esp + 0xbc]
mov dword [esp + 4], ebp
shl eax, 2
mov dword [esp + 8], eax
call fcn.00462d10
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x15c], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x160], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x164], edx
inc ecx
cmp edx, ecx
jae 0x49dc39
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x5a6420]
mov dword [esp + 0x10], eax
call fcn.00449e30
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x164], edx
mov dword [esp + 0x15c], ecx
mov edx, ecx
mov ecx, eax
mov eax, edx
mov dword [esp + 0x160], ecx
mov edx, dword [esp + 0x50]
mov dword [eax + ecx*4 - 4], edx
mov edx, 1
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0xb8]
jmp 0x49d6d5
lea edi, [esp + 0x138]
xor eax, eax
call fcn.00462613
mov byte [esp + 0x16c], 0
add esp, 0x12c
ret
mov eax, edx
mov ecx, ebp
call fcn.00462480
nop
call fcn.00460ff0
jmp fcn.0049d470