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

Disassembly:
sub esp, 0x184
mov eax, dword [0x423050]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], eax
mov byte [esi + 0xe80], 0
mov dword [esp + 0x10], 0
mov eax, dword [esi + 0xe7c]
test eax, eax
mov ebx, dword [0x41e200]
jne 0x408238
mov ebp, dword [esi + 0xee4]
mov dword [esi + 0x80d94], 3
mov byte [esi + 0x80d92], 0
mov edi, dword [esi + 0xee4]
test edi, edi
je 0x4081ab
lea ecx, [esp + 0x9c]
push ecx
push edi
call ebx
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0x9c]
sub edx, eax
mov eax, dword [esp + 0xa4]
dec edx
push edx
sub eax, ecx
dec eax
push eax
push 1
push 1
lea ecx, [esp + 0xdc]
push ecx
call dword [0x41e1f8]
push 1
lea edx, [esp + 0xd0]
push edx
push edi
call dword [0x41e1e8]
test ebp, ebp
je 0x408201
lea eax, [esp + 0xac]
push eax
push ebp
call ebx
mov edi, dword [esp + 0xb0]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xb4]
sub ecx, edi
mov edi, dword [esp + 0xac]
dec ecx
push ecx
sub edx, edi
dec edx
push edx
push 1
push 1
lea eax, [esp + 0xfc]
push eax
call dword [0x41e1f8]
push 1
lea ecx, [esp + 0xf0]
push ecx
push ebp
call dword [0x41e1e8]
mov edx, dword [esi + 0xe7c]
mov eax, dword [esi + 0xef0]
inc edx
test eax, eax
mov dword [esi + 0xe7c], edx
je 0x408238
push eax
call dword [0x41e1a4]
mov dword [esi + 0xe74], 0xffffffff
mov byte [esi + 0xe80], 0
mov dword [esp + 0x10], 1
cmp dword [esi + 0xe7c], 1
jne 0x40838d
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40838d
mov ebp, dword [esi + 0xef0]
mov dword [esi + 0x80dac], 3
mov byte [esi + 0x80daa], 0
mov edi, dword [esi + 0xeec]
test edi, edi
je 0x4082b3
lea edx, [esp + 0x4c]
push edx
push edi
call ebx
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
sub eax, ecx
mov ecx, dword [esp + 0x54]
dec eax
push eax
sub ecx, dword [esp + 0x50]
dec ecx
push ecx
push 1
push 1
lea edx, [esp + 0x17c]
push edx
call dword [0x41e1f8]
push 1
lea eax, [esp + 0x170]
push eax
push edi
call dword [0x41e1e8]
mov edi, dword [esi + 0xef0]
test edi, edi
je 0x40830f
lea ecx, [esp + 0x8c]
push ecx
push edi
call ebx
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x8c]
sub edx, eax
mov eax, dword [esp + 0x94]
dec edx
push edx
sub eax, ecx
dec eax
push eax
push 1
push 1
lea ecx, [esp + 0x11c]
push ecx
call dword [0x41e1f8]
push 1
lea edx, [esp + 0x110]
push edx
push edi
call dword [0x41e1e8]
test ebp, ebp
je 0x408356
lea eax, [esp + 0x6c]
push eax
push ebp
call ebx
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x74]
sub ecx, ebx
dec ecx
push ecx
sub edx, eax
dec edx
push edx
push 1
push 1
lea eax, [esp + 0x15c]
push eax
call dword [0x41e1f8]
push 1
lea ecx, [esp + 0x150]
push ecx
push ebp
call dword [0x41e1e8]
mov edx, dword [esi + 0xe7c]
mov eax, dword [esi + 0xeb8]
inc edx
test eax, eax
mov dword [esi + 0xe7c], edx
je 0x40838d
push eax
call dword [0x41e1a4]
mov dword [esi + 0xe74], 0xffffffff
mov byte [esi + 0xe80], 0
mov dword [esp + 0x10], 1
cmp dword [esi + 0xe7c], 2
jne 0x40840d
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40840d
push 1
push 0
mov dword [0x426198], 0
mov edx, dword [esi + 0xeb8]
push 0
push edx
call dword [0x41e1d4]
inc dword [esi + 0xe7c]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x4083d1
mov eax, dword [esi + 0xf04]
jmp 0x4083d7
mov eax, dword [esi + 0xf18]
test eax, eax
je 0x40840d
test ecx, ecx
mov byte [esi + 0xe80], 1
jne 0x4083ee
mov eax, dword [esi + 0xf04]
jmp 0x4083f4
mov eax, dword [esi + 0xf18]
push eax
call dword [0x41e1a4]
mov dword [esi + 0xe74], 0xffffffff
mov dword [esp + 0x10], 1
cmp dword [esi + 0xe7c], 3
jne 0x40868d
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40868d
mov edi, dword [esp + 0x14]
mov ecx, edi
xor eax, eax
imul ecx, ecx, 0xff18
mov dword [esp + 0x18], 0xffffffff
lea ecx, [ecx + esi + 0x1ad0]
mov dx, word [ecx]
cmp dx, 0x30
je 0x408451
test dx, dx
jne 0x40845f
inc eax
add ecx, 0x1c58
cmp eax, 9
jl 0x408443
jmp 0x408463
mov dword [esp + 0x18], eax
test edi, edi
jne 0x40846f
mov ebx, dword [esi + 0xf04]
jmp 0x408475
mov ebx, dword [esi + 0xf18]
mov edi, dword [esp + 0x14]
xor edx, edx
test edi, edi
setne dl
add edx, 2
mov edi, edx
cmp edi, 1
lea eax, [edi + edi*2]
lea eax, [esi + eax*8]
mov dword [eax + 0x80d94], 3
mov byte [eax + 0x80d92], 0
jne 0x4084a9
mov ebp, dword [esi + 0xeec]
jmp 0x4084db
cmp edi, 2
jne 0x4084b6
mov ebp, dword [esi + 0xf00]
jmp 0x4084db
cmp edi, 3
jne 0x4084c3
mov ebp, dword [esi + 0xf14]
jmp 0x4084db
cmp edi, 4
jne 0x4084d0
mov ebp, dword [esi + 0xec0]
jmp 0x4084db
cmp edi, 5
jne 0x408526
mov ebp, dword [esi + 0xebc]
test ebp, ebp
je 0x408526
lea ecx, [esp + 0x2c]
push ecx
push ebp
call dword [0x41e200]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
sub edx, eax
mov eax, dword [esp + 0x34]
dec edx
push edx
sub eax, ecx
dec eax
push eax
push 1
push 1
lea ecx, [esp + 0x13c]
push ecx
call dword [0x41e1f8]
push 1
lea edx, [esp + 0x130]
push edx
push ebp
call dword [0x41e1e8]
cmp edi, 1
jne 0x408533
mov ebp, dword [esi + 0xef0]
jmp 0x408557
cmp edi, 2
jne 0x408540
mov ebp, dword [esi + 0xf04]
jmp 0x408557
cmp edi, 3
jne 0x40854d
mov ebp, dword [esi + 0xf18]
jmp 0x408557
test edi, edi
jne 0x4085a0
mov ebp, dword [esi + 0xee4]
test ebp, ebp
je 0x4085a0
lea eax, [esp + 0x3c]
push eax
push ebp
call dword [0x41e200]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
sub ecx, edx
mov edx, dword [esp + 0x44]
dec ecx
push ecx
sub edx, dword [esp + 0x40]
dec edx
push edx
push 1
push 1
lea eax, [esp + 0xec]
push eax
call dword [0x41e1f8]
push 1
lea ecx, [esp + 0xe0]
push ecx
push ebp
call dword [0x41e1e8]
test ebx, ebx
je 0x4085e9
lea edx, [esp + 0x5c]
push edx
push ebx
call dword [0x41e200]
mov eax, dword [esp + 0x68]
mov ebp, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
sub eax, ebp
dec eax
push eax
sub ecx, dword [esp + 0x60]
dec ecx
push ecx
push 1
push 1
lea edx, [esp + 0x10c]
push edx
call dword [0x41e1f8]
push 1
lea eax, [esp + 0x100]
push eax
push ebx
call dword [0x41e1e8]
mov al, byte [esi + 0x9b8]
test al, al
je 0x408622
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x408603
mov eax, dword [esi + 0xf04]
jmp 0x408609
mov eax, dword [esi + 0xf18]
lea ecx, [edi + edi*2]
mov edx, dword [esi + ecx*8 + 0x80d98]
push edx
push 0
push 0xf7
push eax
call dword [0x425d70]
mov ecx, dword [esp + 0x18]
or eax, 0xffffffff
cmp ecx, eax
mov dword [esi + 0xe7c], eax
mov byte [esi + 0xe80], 0
jne 0x408665
mov eax, dword [esi + 0xee4]
test eax, eax
mov dword [esi + 0xe7c], 0
je 0x408124
push eax
call dword [0x41e1a4]
mov dword [esi + 0xe74], 0xffffffff
jmp 0x408685
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xe74], ecx
add eax, 0x6c
lea ecx, [ecx + eax*8]
add ecx, eax
mov edx, dword [esi + ecx*4]
push edx
call dword [0x41e1a4]
mov dword [esp + 0x10], 1
cmp dword [esi + 0xe7c], 0xffffffff
mov eax, dword [esp + 0x10]
jne 0x408948
test eax, eax
jne 0x408974
mov ecx, dword [esp + 0x14]
mov edi, dword [esi + 0xe74]
lea eax, [ecx + ecx*8]
mov dword [esp + 0x18], eax
add eax, edi
imul eax, eax, 0x1c58
add eax, esi
mov dword [eax + 0x2db4], 3
mov byte [eax + 0x2db0], 0
lea eax, [ecx + 0x74]
lea ecx, [edi + eax*8]
add ecx, eax
mov ebp, dword [esi + ecx*4]
test ebp, ebp
je 0x408732
lea edx, [esp + 0x7c]
push edx
push ebp
call dword [0x41e200]
mov eax, dword [esp + 0x88]
mov ebx, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
sub eax, ebx
dec eax
push eax
sub ecx, dword [esp + 0x80]
dec ecx
push ecx
push 1
push 1
lea edx, [esp + 0x12c]
push edx
call dword [0x41e1f8]
push 1
lea eax, [esp + 0x120]
push eax
push ebp
call dword [0x41e1e8]
mov ebp, dword [esp + 0x14]
lea ebx, [ebp + ebp*8 + 0x3cc]
lea ecx, [ebx + edi]
mov edi, dword [esi + ecx*4]
test edi, edi
je 0x40878c
lea edx, [esp + 0x1c]
push edx
push edi
call dword [0x41e200]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
sub eax, ecx
mov ecx, dword [esp + 0x24]
dec eax
push eax
sub ecx, dword [esp + 0x20]
dec ecx
push ecx
push 1
push 1
lea edx, [esp + 0x14c]
push edx
call dword [0x41e1f8]
push 1
lea eax, [esp + 0x140]
push eax
push edi
call dword [0x41e1e8]
mov cl, byte [esi + 0x9b8]
test cl, cl
mov eax, dword [esi + 0xe74]
mov dword [esi + 0xe78], eax
je 0x40887d
mov ecx, dword [esp + 0x18]
add ecx, eax
imul ecx, ecx, 0x1c58
mov dl, byte [ecx + esi + 0x2db1]
add ecx, esi
add eax, ebx
test dl, dl
je 0x4087d5
mov edx, dword [ecx + 0x2dc0]
mov eax, dword [esi + eax*4]
push edx
push 0
push 0xf7
push eax
jmp 0x4087e7
mov ecx, dword [ecx + 0x2db8]
mov edx, dword [esi + eax*4]
push ecx
push 0
push 0xf7
push edx
call dword [0x425d70]
mov eax, dword [esi + 0xe94]
mov edi, dword [esp + 0x14]
push eax
call dword [0x41e1fc]
mov ebp, eax
mov eax, edi
cmp eax, 0xffffffff
jne 0x408809
xor edi, edi
mov edx, dword [esi + edi*4 + 0xe98]
lea ecx, [esp + 0x17c]
push ecx
push 0x18
push edx
call dword [0x425cc8]
mov eax, dword [esi + edi*4 + 0xe98]
mov ecx, dword [esi + 0xe6c]
push eax
push ecx
call dword [0x41e04c]
mov edx, dword [esi + 0xe6c]
mov eax, dword [esp + 0x184]
mov ecx, dword [esp + 0x180]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
push 0
push 0
push ebp
call dword [0x41e040]
push edi
mov ecx, esi
call fcn.00403c60
mov edx, dword [esi + 0xe94]
push ebp
push edx
call dword [0x41e1c4]
mov ebp, dword [esp + 0x14]
jmp 0x4088da
add eax, ebx
mov edi, dword [esi + eax*4]
test edi, edi
je 0x4088da
lea eax, [esp + 0xbc]
push eax
push edi
call dword [0x41e200]
mov edx, dword [esp + 0xc0]
mov ecx, dword [esp + 0xc8]
sub ecx, edx
mov edx, dword [esp + 0xc4]
dec ecx
push ecx
sub edx, dword [esp + 0xc0]
dec edx
push edx
push 1
push 1
lea eax, [esp + 0x16c]
push eax
call dword [0x41e1f8]
push 1
lea ecx, [esp + 0x160]
push ecx
push edi
call dword [0x41e1e8]
mov eax, dword [esi + 0xe74]
mov ecx, 9
cmp eax, ecx
jge 0x408910
lea esp, [esp]
mov eax, dword [esi + 0xe74]
inc eax
lea edx, [eax + ebx]
mov dword [esi + 0xe74], eax
cmp dword [esi + edx*4], 0
jne 0x40890a
cmp eax, ecx
jl 0x4088f0
cmp dword [esi + 0xe74], ecx
jne 0x408951
mov eax, dword [esi + 0xee4]
test eax, eax
mov dword [esi + 0xe7c], 0
je 0x408124
push eax
call dword [0x41e1a4]
pop edi
mov dword [esi + 0xe74], 0xffffffff
pop esi
pop ebp
pop ebx
add esp, 0x184
ret 4
test eax, eax
jne 0x408974
jmp 0x408124
mov edx, dword [esi + 0xe74]
lea ecx, [ebp + ebp*8 + 0x3cc]
add ecx, edx
mov edx, dword [esi + ecx*4]
push edx
call dword [0x41e1a4]
mov dword [esi + 0xe7c], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x184
ret 4