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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6399c8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x6e9060]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x130], eax
mov dword [edi + 0x12c], ecx
mov esi, dword [edi + 0x144]
add edi, 0x134
cmp dword [edi + 0xc], esi
jbe 0x40895e
call 0x4ee0a4
mov ebx, dword [edi + 0xc]
mov edx, dword [edi]
mov dword [esp + 0x20], edx
cmp ebx, dword [edi + 0x10]
jbe 0x408971
call 0x4ee0a4
mov ecx, dword [esp + 0x20]
mov eax, dword [edi]
push esi
push ecx
push ebx
push eax
lea ebx, [esp + 0x38]
mov esi, edi
call fcn.004185ba
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x12c]
mov ecx, dword [esi + 0x54]
mov eax, dword [esi + 0x130]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx]
mov dword [esp + 0x50], eax
mov eax, dword [edx]
mov dword [esp + 0x18], ecx
call eax
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x18], eax
call fcn.00428b1a
xor ebx, ebx
mov dword [esp + 0x80], 0
mov dword [esp + 0x10], ebx
cmp dword [esi + 0x18c], ebx
je 0x408b6e
cmp dword [esp + 0x14], ebx
jle 0x408a99
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x54]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
push ebx
call edx
test eax, eax
je 0x408a37
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x4089fc
xor eax, eax
jmp 0x408a04
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [edi + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x408a1c
mov dword [esi], ebx
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x408a8a
cmp ecx, esi
jbe 0x408a25
call 0x4ee0a4
mov eax, dword [edi]
push esi
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push ecx
mov eax, edi
jmp 0x408a85
mov edx, dword [esp + 0x68]
test edx, edx
jne 0x408a43
xor ecx, ecx
jmp 0x408a4c
mov ecx, dword [esp + 0x70]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x6c]
mov esi, eax
sub esi, edx
sar esi, 2
cmp esi, ecx
jae 0x408a66
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x6c], eax
jmp 0x408a8a
mov esi, eax
cmp edx, eax
jbe 0x408a71
call 0x4ee0a4
mov eax, dword [esp + 0x5c]
push esi
push eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
lea eax, [esp + 0x6c]
call fcn.00428c1a
inc ebx
cmp ebx, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
jl 0x4089df
mov ebx, dword [edi + 0x10]
cmp dword [edi + 0xc], ebx
jbe 0x408aa6
call 0x4ee0a4
mov esi, dword [edi + 0xc]
mov eax, dword [edi]
mov dword [esp + 0x20], eax
cmp esi, dword [edi + 0x10]
jbe 0x408abd
call 0x4ee0a4
mov eax, dword [esp + 0x20]
mov ecx, dword [edi]
test eax, eax
je 0x408ac7
cmp eax, ecx
je 0x408acc
call 0x4ee0a4
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x18]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], edx
mov edx, ebx
sub edx, esi
sar edx, 2
push edx
push ebx
push esi
mov dword [eax + 8], ecx
call fcn.0040e3fa
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
add esp, 0x18
mov esi, eax
cmp ecx, eax
jbe 0x408b18
call 0x4ee0a4
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x20], edx
mov ebx, ecx
cmp ecx, eax
jbe 0x408b2f
call 0x4ee0a4
mov edx, dword [esp + 0x20]
test edx, edx
je 0x408b39
cmp edx, dword [esp + 0x5c]
je 0x408b3e
call 0x4ee0a4
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x18]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], edx
mov edx, esi
sub edx, ebx
sar edx, 2
push edx
push esi
push ebx
mov dword [eax + 8], ecx
call fcn.0040e3fa
add esp, 0x18
jmp 0x408d83
cmp dword [esp + 0x14], ebx
jle 0x408d83
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x54]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
test eax, eax
je 0x408d21
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
mov ecx, eax
sub ecx, esi
test ecx, 0xfffffffc
je 0x408cdb
mov ebx, eax
cmp esi, eax
jbe 0x408bb9
call 0x4ee0a4
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x28], ecx
cmp esi, eax
jbe 0x408bce
call 0x4ee0a4
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x408bd8
cmp ecx, dword [esp + 0x5c]
je 0x408bdd
call 0x4ee0a4
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x18]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov eax, ebx
sub eax, esi
sar eax, 2
push eax
push ebx
push esi
call fcn.0040e3fa
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov eax, edx
sub eax, ecx
sar eax, 2
add esp, 0x18
xor ebx, ebx
test eax, eax
jbe 0x408c9a
cmp ebx, eax
jb 0x408c30
call 0x4ee0a4
mov ecx, dword [esp + 0x68]
mov eax, dword [edi + 0xc]
lea ecx, [ecx + ebx*4]
mov dword [esp + 0x20], ecx
test eax, eax
jne 0x408c42
xor ecx, ecx
jmp 0x408c4a
mov ecx, dword [edi + 0x14]
sub ecx, eax
sar ecx, 2
mov esi, dword [edi + 0x10]
mov edx, esi
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x408c68
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov dword [esi], ecx
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x408c86
cmp eax, esi
jbe 0x408c71
call 0x4ee0a4
mov eax, dword [edi]
mov edx, dword [esp + 0x20]
push esi
push eax
push edx
lea eax, [esp + 0x3c]
push eax
mov eax, edi
call fcn.00428c1a
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov eax, edx
sub eax, ecx
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x408c30
mov dword [esp + 0x20], edx
cmp ecx, edx
jbe 0x408caf
call 0x4ee0a4
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x5c]
mov ebx, ecx
cmp ecx, edx
jbe 0x408cbe
call 0x4ee0a4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x5c]
push ecx
push esi
push ebx
push edx
lea ebx, [esp + 0x48]
lea esi, [esp + 0x6c]
call fcn.004185ba
mov ebx, dword [esp + 0x10]
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x408ce6
xor eax, eax
jmp 0x408cee
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [edi + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x408d06
mov dword [esi], ebx
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x408d74
cmp ecx, esi
jbe 0x408d0f
call 0x4ee0a4
mov eax, dword [edi]
push esi
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov eax, edi
jmp 0x408d6f
mov edx, dword [esp + 0x68]
test edx, edx
jne 0x408d2d
xor ecx, ecx
jmp 0x408d36
mov ecx, dword [esp + 0x70]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x6c]
mov esi, eax
sub esi, edx
sar esi, 2
cmp esi, ecx
jae 0x408d50
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x6c], eax
jmp 0x408d74
mov esi, eax
cmp edx, eax
jbe 0x408d5b
call 0x4ee0a4
mov eax, dword [esp + 0x5c]
push esi
push eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x50]
push edx
push eax
lea eax, [esp + 0x6c]
call fcn.00428c1a
inc ebx
cmp ebx, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
jl 0x408b78
mov ebx, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
mov ecx, ebx
sub ecx, esi
test ecx, 0xfffffffc
je 0x408ec2
cmp esi, ebx
jbe 0x408da8
call 0x4ee0a4
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x28], eax
cmp esi, dword [esp + 0x6c]
jbe 0x408dbf
call 0x4ee0a4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x408dc9
cmp eax, dword [esp + 0x5c]
je 0x408dce
call 0x4ee0a4
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x18]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov eax, ebx
sub eax, esi
sar eax, 2
push eax
push ebx
push esi
call fcn.0040e3fa
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov eax, edx
sub eax, ecx
sar eax, 2
add esp, 0x18
xor ebx, ebx
test eax, eax
jbe 0x408e8b
cmp ebx, eax
jb 0x408e21
call 0x4ee0a4
mov ecx, dword [esp + 0x68]
mov eax, dword [edi + 0xc]
lea ecx, [ecx + ebx*4]
mov dword [esp + 0x20], ecx
test eax, eax
jne 0x408e33
xor ecx, ecx
jmp 0x408e3b
mov ecx, dword [edi + 0x14]
sub ecx, eax
sar ecx, 2
mov esi, dword [edi + 0x10]
mov edx, esi
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x408e59
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov dword [esi], ecx
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x408e77
cmp eax, esi
jbe 0x408e62
call 0x4ee0a4
mov eax, dword [edi]
mov edx, dword [esp + 0x20]
push esi
push eax
push edx
lea eax, [esp + 0x54]
push eax
mov eax, edi
call fcn.00428c1a
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov eax, edx
sub eax, ecx
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x408e21
mov ebx, edx
cmp ecx, edx
jbe 0x408e9e
call 0x4ee0a4
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x5c]
mov edi, ecx
cmp ecx, edx
jbe 0x408ead
call 0x4ee0a4
mov ecx, dword [esp + 0x5c]
push ebx
push esi
push edi
push ecx
lea ebx, [esp + 0x58]
lea esi, [esp + 0x6c]
call fcn.004185ba
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
xor esi, esi
push esi
push esi
push eax
call dword [0x6457ec]
mov eax, dword [esp + 0x68]
cmp eax, esi
je 0x408ee4
push eax
call 0x4cdbe1
add esp, 4
mov ecx, dword [esp + 0x5c]
push ecx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
call 0x4cdbe1
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8