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

Disassembly:
push 0xffffffffffffffff
push 0x42cc28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push ebp
mov ebp, dword [esp + 0xbc]
push esi
mov ebx, ecx
mov esi, dword [ebx + 0x38]
mov ecx, dword [esi]
push edi
mov edi, dword [esi + 8]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 4]
sub eax, edi
add ecx, edi
call fcn.00405700
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x4085ae
call fcn.00405500
add edi, ecx
mov dword [esi + 8], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
cmp eax, 2
jne 0x4085ff
xor eax, eax
cmp edx, eax
jne 0x408601
push ebx
call fcn.00405b50
mov esi, dword [ebx + 0x38]
mov edi, dword [esi + 8]
mov eax, dword [esi + 4]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi]
sub eax, edi
add ecx, edi
call fcn.00405700
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x4085f2
call fcn.00405500
add edi, ecx
mov dword [esi + 8], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
cmp dword [esp + 0x1c], 3
mov dword [esp + 0xbc], eax
jne 0x4086a1
cmp dword [esp + 0x20], eax
jne 0x4086a1
mov eax, dword [ebp + 0x10c]
mov ecx, dword [ebp + 0x108]
lea edx, [esp + 0x44]
push edx
lea esi, [ebp + 0x118]
push esi
push eax
push ecx
push ebx
call fcn.00407ef0
mov edi, eax
test edi, edi
je 0x40865b
lea ebx, [esp + 0x44]
call fcn.004097e0
mov eax, edi
jmp 0x408f16
mov edx, dword [ebp + 0x108]
add dword [esi], edx
mov eax, dword [ebp + 0x10c]
lea ecx, [esp + 0x14]
adc dword [esi + 4], eax
mov esi, dword [ebx + 0x38]
mov edi, dword [esi + 8]
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esi]
sub eax, edi
add ecx, edi
call fcn.00405700
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x408692
call fcn.00405500
add ecx, edi
mov dword [esp + 0x1c], eax
mov dword [esi + 8], ecx
mov dword [esp + 0x20], edx
xor eax, eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
cmp dword [esp + 0x1c], 4
mov byte [esp + 0xbc], 2
jne 0x40875b
cmp dword [esp + 0x20], eax
jne 0x40875b
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0x80]
push eax
lea esi, [ebp + 0x110]
push esi
lea ecx, [esp + 0x50]
push ecx
mov edi, ebp
mov eax, ebx
call fcn.00407a40
mov edx, dword [ebp + 0x108]
add dword [esi], edx
mov eax, dword [ebp + 0x10c]
lea ecx, [esp + 0x14]
adc dword [esi + 4], eax
mov esi, dword [ebx + 0x38]
mov edi, dword [esi + 8]
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esi]
sub eax, edi
add ecx, edi
call fcn.00405700
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x40874e
call fcn.00405500
add ecx, edi
mov dword [esi + 8], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
cmp dword [esp + 0x1c], 5
jne 0x408e87
cmp dword [esp + 0x20], 0
jne 0x408e87
mov esi, dword [ebx + 0x38]
mov edi, dword [esi + 8]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea edx, [esp + 0x14]
push edx
sub eax, edi
add ecx, edi
call fcn.00405700
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40879b
call fcn.00405500
add eax, edi
mov dword [esi + 8], eax
test edx, edx
jne 0x4087ae
cmp dword [esp + 0x24], 0x7fffffff
jbe 0x4087b3
call fcn.00405520
lea esi, [ebp + 0x120]
call fcn.00409830
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [eax + ecx*8], 9
xor edi, edi
mov dword [eax + ecx*8 + 4], edi
inc dword [esi + 4]
call fcn.00409830
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [eax + ecx*8], 6
mov dword [eax + ecx*8 + 4], edi
inc dword [esi + 4]
cmp dword [esp + 0x24], edi
jbe 0x408812
cmp dword [esp + 0x8c], edi
je 0x408812
call fcn.00409830
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [eax + ecx*8], 0xa
mov dword [eax + ecx*8 + 4], edi
inc dword [esi + 4]
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov byte [esp + 0xbc], 5
mov ecx, dword [ebx + 0x38]
mov edx, dword [ecx + 8]
lea esi, [ecx + 8]
lea eax, [esp + 0x30]
push eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
sub eax, edx
add ecx, edx
mov dword [esp + 0x1c], edi
call fcn.00405700
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], edx
cmp eax, edi
je 0x408c5a
jmp 0x40887b
mov ebp, dword [esp + 0xc4]
add dword [esi], eax
mov esi, dword [ebx + 0x38]
mov edi, dword [esi + 8]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x34]
sub eax, edi
or ecx, dword [esp + 0x38]
je 0x408c5f
mov ecx, dword [esi]
lea edx, [esp + 0x14]
push edx
add ecx, edi
call fcn.00405700
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], edx
test eax, eax
je 0x4085a9
add eax, edi
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax + 4]
sub ecx, dword [eax + 8]
xor edx, edx
cmp dword [esp + 0x40], edx
ja 0x4085a9
jb 0x4088de
cmp dword [esp + 0x3c], ecx
ja 0x4085a9
mov word [esp + 0x60], dx
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0xbc], 6
mov edx, dword [eax + 8]
add edx, dword [eax]
push 1
push ecx
push edx
mov edx, ebx
lea ecx, [esp + 0x68]
call fcn.00405590
xor esi, esi
cmp dword [esp + 0x38], esi
ja case.0x40892f.22
jb 0x40891f
cmp dword [esp + 0x34], 0x40000000
ja case.0x40892f.22
mov eax, dword [esp + 0x34]
add eax, 0xfffffff2
cmp eax, 0xb
ja case.0x40892f.22
jmp dword [eax*4 + 0x408f34]
mov word [esp + 0xac], si
lea eax, [esp + 0x44]
push eax
push ebx
lea ecx, [esp + 0xb0]
push ecx
mov byte [esp + 0xc8], 7
call fcn.00405620
mov eax, dword [ebx + 0x38]
mov edi, dword [eax + 4]
sub edi, dword [eax + 8]
lea esi, [ebp + 0xe8]
call fcn.00409560
mov eax, dword [esi]
mov esi, dword [ebx + 0x38]
test edi, edi
je 0x408998
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
sub edx, ecx
cmp edi, edx
ja 0x4085a9
mov edx, dword [esi]
push edi
add edx, ecx
push edx
push eax
call fcn.00429520
add esp, 0xc
add dword [esi + 8], edi
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0xc4]
inc eax
add esi, 0xf0
push eax
call fcn.00409790
xor eax, eax
xor ebp, ebp
cmp dword [esp + 0x24], eax
jbe 0x408a16
lea ebx, [ebx]
mov edx, dword [esp + 0xc4]
mov esi, dword [edx + 0xe8]
mov ecx, edi
lea edx, [edx + 0xe8]
sub ecx, eax
shr ecx, 1
lea esi, [esi + eax]
mov edx, 0
je 0x4089ef
cmp word [esi + edx*2], 0
je 0x4089ef
inc edx
cmp edx, ecx
jb 0x4089e3
cmp edx, ecx
je 0x4085a9
mov ecx, dword [esp + 0xc4]
mov ecx, dword [ecx + 0xf0]
mov esi, eax
shr esi, 1
mov dword [ecx + ebp*4], esi
inc ebp
lea eax, [eax + edx*2 + 2]
cmp ebp, dword [esp + 0x24]
jb 0x4089c0
mov ecx, dword [esp + 0xc4]
mov ecx, dword [ecx + 0xf0]
mov edx, eax
shr edx, 1
mov dword [ecx + ebp*4], edx
cmp eax, edi
je 0x408a32
mov byte [ebx + 0x3c], 1
mov byte [esp + 0xbc], 6
lea esi, [esp + 0xa8]
call fcn.00405540
mov esi, dword [esp + 0xc4]
add esi, 0x120
call fcn.00409830
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*8], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*8 + 4], edx
inc dword [esi + 4]
jmp 0x408bd4
mov edi, dword [esp + 0x24]
push ebx
lea eax, [ebp + 0xc4]
call fcn.00407d50
mov word [esp + 0xa4], si
lea eax, [esp + 0x44]
push eax
push ebx
lea ecx, [esp + 0xa8]
push ecx
mov byte [esp + 0xc8], 8
call fcn.00405620
push ebx
lea eax, [ebp + 0xc4]
call fcn.00406290
mov byte [esp + 0xbc], 6
lea esi, [esp + 0xa0]
jmp 0x408a41
mov edx, dword [esp + 0x24]
push edx
push ebx
lea eax, [esp + 0x78]
call fcn.00407cb0
lea eax, [esp + 0x70]
call fcn.004054e0
mov dword [esp + 0x18], eax
mov dword [esp + 0x68], esi
mov dword [esp + 0x54], esi
jmp 0x408a46
mov eax, dword [esp + 0x18]
push eax
push ebx
lea eax, [esp + 0x6c]
call fcn.00407cb0
jmp 0x408a46
mov ecx, dword [esp + 0x18]
push ecx
push ebx
lea eax, [esp + 0x58]
call fcn.00407cb0
jmp 0x408a46
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x44]
push eax
lea edx, [ebp + 0xac]
push ebx
call fcn.00407df0
jmp 0x408a46
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [ebp + 0x64]
push ebx
call fcn.00407df0
jmp 0x408a46
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x44]
push eax
lea edx, [ebp + 0x7c]
push ebx
call fcn.00407df0
jmp 0x408a46
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [ebp + 0x94]
push ebx
call fcn.00407df0
jmp 0x408a46
mov edi, dword [esp + 0x40]
xor ebp, ebp
cmp edi, esi
jb 0x408bd4
ja 0x408b90
cmp dword [esp + 0x3c], esi
jbe 0x408bd4
lea esp, [esp]
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 4]
jae 0x4085a9
mov edx, dword [eax]
mov dl, byte [ecx + edx]
inc ecx
mov dword [eax + 8], ecx
test dl, dl
je 0x408bb0
mov byte [ebx + 0x3c], 1
add ebp, 1
adc esi, 0
cmp esi, edi
jb 0x408b90
ja 0x408bd4
cmp ebp, dword [esp + 0x3c]
jb 0x408b90
jmp 0x408bd4
mov byte [ebp + 0x14d], 1
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax + 4]
mov dword [eax + 8], ecx
mov eax, dword [ebx + 0x38]
mov edx, dword [eax + 4]
sub edx, dword [eax + 8]
jne 0x4085a9
mov byte [esp + 0xbc], 5
cmp byte [esp + 0x60], dl
je 0x408c2a
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x38]
mov edx, dword [ecx + 4]
sub edx, dword [ecx + 8]
je 0x408c04
mov byte [eax + 0x3c], 1
dec dword [eax + 4]
mov ecx, dword [eax + 4]
je 0x408c25
cmp byte [esp + 0x61], 0
lea ecx, [ecx + ecx*2]
lea edx, [eax + ecx*4]
lea ecx, [edx - 4]
mov dword [eax + 0x38], ecx
je 0x408c25
mov edx, dword [edx + 0x10]
add dword [ecx + 8], edx
mov byte [esp + 0x60], 0
mov ecx, dword [ebx + 0x38]
mov edx, dword [ecx + 8]
lea esi, [ecx + 8]
lea eax, [esp + 0x30]
push eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
sub eax, edx
add ecx, edx
call fcn.00405700
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], edx
test eax, eax
jne 0x408874
call fcn.00405500
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi]
add ecx, edi
call fcn.00405700
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x408c7a
call fcn.00405500
add ecx, edi
mov dword [esi + 8], ecx
mov esi, dword [esp + 0x24]
mov dword [esp + 0x20], edx
mov edx, esi
sub edx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
cmp edx, dword [esp + 0x80]
je 0x408c9f
call fcn.00405520
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
xor eax, eax
xor edx, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
cmp ecx, eax
jbe 0x408d3f
nop
cmp byte [eax + edi], 0
je 0x408cc7
inc edx
inc eax
cmp eax, ecx
jb 0x408cc0
mov dword [esp + 0x14], edx
test edx, edx
je 0x408d3f
mov dword [ebp + 0xe0], 0
cmp esi, dword [ebp + 0xe4]
jbe 0x408d39
mov eax, dword [ebp + 0xdc]
push eax
call fcn.004259b6
mov esi, dword [esp + 0x28]
add esp, 4
xor edi, edi
push esi
mov dword [ebp + 0xdc], edi
mov dword [ebp + 0xe4], edi
call fcn.004259f0
add esp, 4
cmp eax, edi
jne 0x408d29
xor al, al
mov byte [esp + 0x2f], al
push 0x433900
lea eax, [esp + 0x33]
push eax
call fcn.0042a55f
mov dword [ebp + 0xe4], esi
mov esi, dword [esp + 0x24]
mov dword [ebp + 0xdc], eax
mov dword [ebp + 0xe0], esi
mov edi, dword [esp + 0x24]
lea esi, [ebp + 0x58]
call fcn.004098b0
mov eax, edi
xor edi, edi
mov dword [esi + 4], eax
test eax, eax
je 0x408e58
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x50]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], eax
mov esi, edi
lea esp, [esp]
mov eax, dword [ebp + 0x58]
add eax, dword [esp + 0x3c]
mov dword [eax + 8], 0
cmp edi, dword [esp + 0x74]
jae 0x408d8e
mov ecx, dword [esp + 0x70]
cmp byte [ecx + edi], 0
jne 0x408dee
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x7c]
mov word [eax + 0xc], 1
mov esi, dword [esi + ecx*8]
mov dword [eax], esi
mov esi, dword [esp + 0x7c]
mov esi, dword [esi + ecx*8 + 4]
xor dl, dl
mov dword [eax + 4], esi
cmp ecx, dword [esp + 0x8c]
jae 0x408dca
mov esi, dword [esp + 0x88]
cmp byte [esi + ecx], dl
je 0x408dca
mov ecx, 1
jmp 0x408dcc
xor ecx, ecx
mov byte [eax + 0xe], cl
test cl, cl
je 0x408de4
mov ecx, dword [esp + 0x94]
mov esi, dword [esp + 0x18]
mov ecx, dword [ecx + esi*4]
mov dword [eax + 8], ecx
inc dword [esp + 0x18]
mov esi, dword [esp + 0x30]
jmp 0x408e38
mov byte [eax + 0xc], 0
cmp esi, dword [esp + 0x68]
jae 0x408e07
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x34]
add edx, ecx
mov cl, byte [edx + esi]
jmp 0x408e09
xor cl, cl
test cl, cl
sete dl
mov byte [eax + 0xd], dl
cmp esi, dword [esp + 0x54]
jae 0x408e20
mov ecx, dword [esp + 0x50]
mov dl, byte [ecx + esi]
jmp 0x408e22
xor dl, dl
inc esi
mov dword [esp + 0x30], esi
mov dword [eax], 0
mov dword [eax + 4], 0
mov byte [eax + 0xe], 0
cmp dword [esp + 0x14], 0
je 0x408e48
mov eax, dword [ebp + 0xdc]
mov byte [edi + eax], dl
add dword [esp + 0x3c], 0x10
inc edi
cmp edi, dword [esp + 0x24]
jb 0x408d70
mov ecx, dword [esp + 0x50]
push ecx
call fcn.004259b6
mov edx, dword [esp + 0x68]
add esp, 4
push edx
call fcn.004259b6
mov byte [esp + 0xc0], 2
mov eax, dword [esp + 0x74]
add esp, 4
push eax
call fcn.004259b6
add esp, 4
mov esi, ebp
call fcn.00408f70
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x20]
jne 0x408ea3
mov ebx, dword [ebx + 0x38]
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx + 8]
je 0x408eaa
mov byte [ebp + 0x14d], 1
mov edx, dword [esp + 0x94]
push edx
call fcn.004259b6
mov eax, dword [esp + 0x8c]
add esp, 4
push eax
call fcn.004259b6
mov ecx, dword [esp + 0x80]
add esp, 4
push ecx
call fcn.004259b6
mov esi, dword [esp + 0x4c]
add esp, 4
test esi, esi
je 0x408f07
mov ebx, dword [esp + 0x44]
mov edi, dword [ebx + esi*4 - 4]
dec esi
test edi, edi
je 0x408f03
mov edx, dword [edi]
push edx
call fcn.004259b6
add esp, 4
push edi
call fcn.004259b6
add esp, 4
test esi, esi
jne 0x408ee6
mov eax, dword [esp + 0x44]
push eax
call fcn.004259b6
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xb0
ret 4