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

Disassembly:
sub esp, 0x690
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0x68c], eax
mov eax, dword [esp + 0x6a0]
push ebx
mov ebx, dword [esp + 0x69c]
push ebp
mov ebp, dword [esp + 0x69c]
push edi
mov edi, dword [esp + 0x6a8]
cmp ebx, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], eax
jl 0x49a1b6
xor eax, eax
jmp 0x49aa5d
push esi
mov esi, edi
sub esi, ebx
lea eax, [esp + 0x5ac]
mov dword [esp + 0x64c], eax
mov dword [esp + 0x650], 0x50
cmp esi, 0x50
jbe 0x49a1f3
lea ecx, [esi + esi]
push ecx
call fcn.0045bb10
add esp, 4
mov dword [esp + 0x64c], eax
mov dword [esp + 0x650], esi
lea edx, [esp + 0x14]
push edx
push esi
push eax
mov eax, edi
cdq
push edx
push eax
mov eax, ebx
cdq
push edx
push eax
push ebp
mov dword [esp + 0x34], 0
call fcn.004959b0
add esp, 0x20
cmp dword [esp + 0x14], 0
jg 0x49a508
mov edx, dword [esp + 0x64c]
push esi
push edx
lea ecx, [esp + 0x53c]
call fcn.004770f0
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x53c]
push 5
push ecx
call fcn.0049d660
add esp, 0x10
cmp eax, 1
je 0x49a274
lea edx, [esp + 0x14]
push edx
push 0
lea eax, [esp + 0x53c]
push 5
push eax
call fcn.0049d6e0
add esp, 0x10
test al, al
jne 0x49a274
xor bl, bl
jmp 0x49a276
mov bl, 1
lea ecx, [esi + 1]
push ecx
lea ecx, [esp + 0x160]
call fcn.00499b70
xor ebp, ebp
xor edi, edi
lea ecx, [esp + 0x558]
mov dword [esp + 0x18], edi
mov dword [esp + 0x3c], 0x345ad82c
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], 0x70
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], ebp
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa0], ebp
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa8], ebp
call fcn.00476570
test bl, bl
je 0x49a39a
mov edx, dword [esp + 0x29c]
xor eax, eax
mov dword [edx], ebp
mov cl, byte [esp + 0x538]
test cl, cl
movsx ecx, cl
jge 0x49a357
mov ecx, dword [esp + 0x540]
cmp eax, ecx
jge 0x49a377
push 1
push eax
lea ecx, [esp + 0x53c]
call fcn.004760b0
mov ecx, dword [esp + 0x29c]
inc edi
mov dword [ecx + edi*4], eax
jmp 0x49a342
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x538]
push eax
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x24], edi
call fcn.004975e0
add esp, 0xc
jmp 0x49a4cf
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x55c]
push eax
push ebp
lea ecx, [esp + 0x540]
push 5
push ecx
call fcn.0049d560
add esp, 0x14
cmp dword [esp + 0x14], ebp
jle 0x49a419
lea ecx, [esp + 0x558]
call fcn.00476020
mov eax, dword [esp + 0x29c]
lea edx, [esp + 0x15c]
cmp eax, edx
je 0x49a3e7
push eax
call fcn.0045bbf0
add esp, 4
lea ecx, [esp + 0x534]
call fcn.00476020
mov eax, dword [esp + 0x64c]
lea ecx, [esp + 0x5ac]
cmp eax, ecx
je 0x49a523
push eax
call fcn.0045bbf0
add esp, 4
xor eax, eax
jmp 0x49aa5c
mov al, byte [esp + 0x55c]
test al, al
movsx eax, al
jge 0x49a42e
mov eax, dword [esp + 0x564]
inc eax
push eax
lea ecx, [esp + 0x160]
call fcn.00499bb0
mov edx, dword [esp + 0x64c]
push 5
push esi
push edx
lea ecx, [esp + 0x660]
call fcn.0049d760
mov eax, dword [esp + 0x29c]
lea ecx, [esp + 0x654]
mov dword [eax], ebp
call fcn.0049d2b0
test eax, eax
jle 0x49a4a9
lea esp, [esp]
lea ecx, [esp + 0x654]
call fcn.0049d480
lea ecx, [esp + 0x654]
call fcn.0049d290
mov ecx, dword [esp + 0x29c]
mov esi, eax
inc edi
mov dword [ecx + edi*4], esi
lea ecx, [esp + 0x654]
call fcn.0049d2b0
cmp esi, eax
jl 0x49a470
mov dword [esp + 0x18], edi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x55c]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004975e0
add esp, 0xc
lea ecx, [esp + 0x654]
call fcn.0049d250
cmp dword [esp + 0x14], ebp
jle 0x49a52a
lea ecx, [esp + 0x558]
call fcn.00476020
mov eax, dword [esp + 0x29c]
lea edx, [esp + 0x15c]
cmp eax, edx
je 0x49a4fc
push eax
call fcn.0045bbf0
add esp, 4
lea ecx, [esp + 0x534]
call fcn.00476020
mov eax, dword [esp + 0x64c]
lea ecx, [esp + 0x5ac]
cmp eax, ecx
je 0x49a523
push eax
call fcn.0045bbf0
add esp, 4
xor eax, eax
jmp 0x49aa5c
lea esi, [edi + 1]
push esi
lea ecx, [esp + 0x3f0]
mov dword [esp + 0x30], esi
call fcn.00499b70
mov edx, dword [esp + 0x52c]
mov eax, 1
cmp edi, eax
mov dword [edx], ebp
jl 0x49a563
mov ecx, dword [esp + 0x52c]
mov dword [ecx + eax*4], 0xffffffff
inc eax
cmp eax, edi
jle 0x49a550
lea edx, [esp + 0x2a4]
mov dword [esp + 0x3e4], edx
mov dword [esp + 0x3e8], 0x50
cmp esi, 0x50
jbe 0x49a59f
lea eax, [esi*4]
push eax
call fcn.0045bb10
add esp, 4
mov dword [esp + 0x3e4], eax
mov dword [esp + 0x3e8], esi
xor eax, eax
cmp edi, ebp
jl 0x49a5c3
mov ecx, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [esp + 0x3e4]
mov dword [edx + eax*4], 0xffffffff
inc eax
cmp eax, ecx
jle 0x49a5b0
mov ebp, dword [esp + 0x18]
mov esi, 0x14
lea eax, [esp + 0x57c]
mov dword [esp + 0x5a4], eax
mov dword [esp + 0x5a8], esi
cmp ebp, esi
jbe 0x49a600
lea ecx, [ebp + ebp]
push ecx
call fcn.0045bb10
add esp, 4
mov dword [esp + 0x5a4], eax
mov dword [esp + 0x5a8], ebp
lea edx, [esp + 0xac]
mov dword [esp + 0xfc], edx
mov dword [esp + 0x100], esi
cmp ebp, esi
jbe 0x49a637
lea eax, [ebp*4]
push eax
call fcn.0045bb10
add esp, 4
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], ebp
xor esi, esi
mov byte [esp + 0x13], 0
test ebp, ebp
jle 0x49a88d
mov edi, dword [esp + 0x28]
mov dword [esp + 0x20], ebp
mov edi, edi
mov eax, esi
cdq
push edx
push eax
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
call fcn.004955f0
mov edx, dword [esp + 0x538]
add esp, 0xc
cmp dword [edx + esi*4], 0xffffffff
je 0x49a880
lea eax, [esi + 1]
mov dword [esp + 0x24], eax
add eax, 0x13
cmp eax, ebp
mov eax, 0x14
jb 0x49a692
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x5a4]
mov ecx, dword [edi + 0x10c]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push ebx
push eax
lea ebx, [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x108]
push ebx
push eax
lea eax, [esp + 0x50]
push eax
call edx
cmp dword [esp + 0x1c], 0
je 0x49a6ce
mov eax, dword [esp + 0xfc]
cmp dword [eax], 1
je 0x49a71a
mov ebx, dword [edi + 0x3c]
lea ecx, [esp + 0x3c]
add edi, 0x3c
push ecx
call fcn.004956a0
mov edx, dword [ebx + 0x18]
add esp, 4
push eax
mov ecx, edi
call edx
test al, al
jne 0x49a71a
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x5a4]
mov eax, 0xff
mov word [edx + ecx*2], ax
mov eax, dword [esp + 0x1c]
mov ecx, eax
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xfc]
mov dword [eax + ecx*4], 1
xor ecx, ecx
cmp dword [esp + 0x1c], ecx
jle 0x49a778
mov edi, dword [esp + 0x52c]
lea esp, [esp]
mov edx, dword [esp + 0x5a4]
movzx eax, word [edx + ecx*2]
mov edx, dword [esp + 0xfc]
mov edx, dword [edx + ecx*4]
add eax, dword [edi + esi*4]
add edx, esi
cmp eax, dword [edi + edx*4]
lea edx, [edi + edx*4]
jae 0x49a771
mov dword [edx], eax
mov eax, dword [esp + 0xfc]
mov edx, dword [eax + ecx*4]
mov eax, dword [esp + 0x3e4]
add edx, esi
mov dword [eax + edx*4], esi
mov edi, dword [esp + 0x52c]
inc ecx
cmp ecx, dword [esp + 0x1c]
jl 0x49a730
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004955f0
lea ecx, [esp + 0x48]
push ecx
call fcn.004956a0
movzx eax, ax
lea edx, [eax - 0x30a1]
add esp, 0x10
cmp dx, 0x5d
ja 0x49a7b2
mov ecx, 0x30fb
cmp ax, cx
jne 0x49a7bd
add eax, 0x9a
cmp ax, 0x39
ja 0x49a7c1
mov bl, 1
jmp 0x49a7c3
xor bl, bl
cmp byte [esp + 0x13], 0
jne 0x49a874
test bl, bl
je 0x49a874
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x3c]
push edx
call fcn.00495790
mov eax, edi
add esp, 4
cmp eax, ebp
jge 0x49a83c
sub eax, esi
mov ebp, eax
cmp ebp, 0x14
jge 0x49a83c
lea eax, [esp + 0x3c]
push eax
call fcn.004956a0
movzx eax, ax
lea ecx, [eax - 0x30a1]
add esp, 4
cmp cx, 0x5d
ja 0x49a81c
mov edx, 0x30fb
cmp ax, dx
jne 0x49a827
add eax, 0x9a
cmp ax, 0x39
ja 0x49a83c
lea eax, [esp + 0x3c]
push eax
call fcn.00495790
inc edi
add esp, 4
inc ebp
cmp edi, dword [esp + 0x18]
jl 0x49a7f1
mov eax, edi
sub eax, esi
cmp eax, 0x14
jge 0x49a874
cmp eax, 8
mov ecx, 0x2000
jg 0x49a856
mov ecx, dword [eax*4 + 0x4f1944]
mov edx, dword [esp + 0x52c]
mov eax, dword [edx + esi*4]
add eax, ecx
cmp eax, dword [edx + edi*4]
jae 0x49a874
mov dword [edx + edi*4], eax
mov ecx, dword [esp + 0x3e4]
mov dword [ecx + edi*4], esi
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
mov byte [esp + 0x13], bl
dec dword [esp + 0x20]
inc esi
cmp esi, ebp
jl 0x49a650
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x104]
mov dword [esp + 0x154], eax
mov dword [esp + 0x158], 0x14
cmp esi, 0x14
jbe 0x49a8cd
lea edx, [esi*4]
push edx
call fcn.0045bb10
add esp, 4
mov dword [esp + 0x154], eax
mov dword [esp + 0x158], esi
mov ecx, dword [esp + 0x52c]
xor esi, esi
cmp dword [ecx + ebp*4], 0xffffffff
jne 0x49a8e5
mov dword [eax], ebp
mov esi, 1
jmp 0x49a909
mov eax, ebp
test ebp, ebp
jle 0x49a909
jmp 0x49a8f0
mov edx, dword [esp + 0x154]
mov dword [edx + esi*4], eax
mov ecx, dword [esp + 0x3e4]
mov eax, dword [ecx + eax*4]
inc esi
test eax, eax
jg 0x49a8f0
mov ebx, dword [esp + 0x38]
mov eax, dword [ebx + 4]
test eax, eax
je 0x49a92a
dec eax
push eax
mov ecx, ebx
call fcn.00487e60
mov ebp, dword [esp + 0x6a8]
cmp eax, ebp
jge 0x49a940
jmp 0x49a931
mov ebp, dword [esp + 0x6a8]
mov edx, dword [esp + 0x154]
mov dword [edx + esi*4], 0
inc esi
lea edi, [esi - 1]
test edi, edi
jl 0x49a978
jmp 0x49a950
mov ecx, dword [esp + 0x154]
mov edx, dword [ecx + edi*4]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2a0]
mov ecx, dword [eax + edx*4]
add ecx, ebp
push ecx
mov ecx, ebx
call fcn.004882b0
sub edi, 1
jns 0x49a950
lea edx, [esp + 0x3c]
push edx
call fcn.00495bf0
mov eax, dword [esp + 0x158]
lea ecx, [esp + 0x108]
add esp, 4
cmp eax, ecx
je 0x49a9a0
push eax
call fcn.0045bbf0
add esp, 4
mov eax, dword [esp + 0xfc]
lea edx, [esp + 0xac]
cmp eax, edx
je 0x49a9bb
push eax
call fcn.0045bbf0
add esp, 4
mov eax, dword [esp + 0x5a4]
lea ecx, [esp + 0x57c]
cmp eax, ecx
je 0x49a9d6
push eax
call fcn.0045bbf0
add esp, 4
mov eax, dword [esp + 0x3e4]
lea edx, [esp + 0x2a4]
cmp eax, edx
je 0x49a9f1
push eax
call fcn.0045bbf0
add esp, 4
mov eax, dword [esp + 0x52c]
lea ecx, [esp + 0x3ec]
cmp eax, ecx
je 0x49aa0c
push eax
call fcn.0045bbf0
add esp, 4
lea ecx, [esp + 0x558]
call fcn.00476020
mov eax, dword [esp + 0x29c]
lea edx, [esp + 0x15c]
cmp eax, edx
je 0x49aa33
push eax
call fcn.0045bbf0
add esp, 4
lea ecx, [esp + 0x534]
call fcn.00476020
mov eax, dword [esp + 0x64c]
lea ecx, [esp + 0x5ac]
cmp eax, ecx
je 0x49aa5a
push eax
call fcn.0045bbf0
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x698]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00439589
add esp, 0x690
ret 0x10