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

Disassembly:
push 0xffffffffffffffff
push 0x416e03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x419dd0
mov eax, dword [esi + 0x6c]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x3c], 1
je 0x408f5c
lea edi, [esi + 0x44]
mov ecx, edi
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov edx, dword [eax]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004157b8
mov ebx, dword [esi + 0x4c]
mov edx, dword [esi + 0x6c]
add esp, 4
add ebx, 0xc
dec edx
mov dword [esi + 0x4c], ebx
mov ecx, edx
mov eax, ebx
cmp ecx, ebp
mov dword [esi + 0x6c], edx
je 0x408ed3
cmp eax, dword [esi + 0x48]
jne 0x408f53
mov eax, dword [esi + 0x50]
lea edx, [eax + 4]
mov dword [esi + 0x50], edx
mov eax, dword [eax]
push eax
call fcn.004157b8
mov eax, dword [esi + 0x6c]
add esp, 4
cmp eax, ebp
jne 0x408f35
lea ecx, [esp + 0x24]
call fcn.0040a3d0
mov ecx, dword [esp + 0x28]
lea eax, [esi + 0x44]
mov edx, dword [esp + 0x2c]
mov ebp, eax
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ebx
lea ebp, [esi + 0x54]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x64]
push eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ebx
call fcn.004157b8
add esp, 4
jmp 0x408f51
mov eax, dword [esi + 0x50]
lea ebp, [esi + 0x44]
mov edx, dword [eax]
mov ecx, edx
mov dword [ebp], ecx
lea ebx, [ecx + 0xffc]
mov dword [ebp + 4], ebx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], eax
xor ebp, ebp
cmp dword [esi + 0x6c], ebp
jne 0x408e80
mov ecx, dword [esi + 0x70]
cmp ecx, ebp
je 0x408f79
call fcn.0040c5a0
mov ecx, dword [esi + 0x70]
cmp ecx, ebp
je 0x408f76
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x70], ebp
mov ecx, dword [esi + 0x74]
cmp ecx, ebp
je 0x408f96
call fcn.0040c5a0
mov ecx, dword [esi + 0x74]
cmp ecx, ebp
je 0x408f93
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x74], ebp
mov ecx, dword [esi + 0x78]
cmp ecx, ebp
je 0x408fb3
call fcn.0040c5a0
mov ecx, dword [esi + 0x78]
cmp ecx, ebp
je 0x408fb0
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x78], ebp
mov ecx, dword [esi + 0x7c]
cmp ecx, ebp
je 0x408fd0
call fcn.0040c5a0
mov ecx, dword [esi + 0x7c]
cmp ecx, ebp
je 0x408fcd
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x7c], ebp
mov ecx, dword [esi + 0x80]
cmp ecx, ebp
je 0x408ff6
call fcn.0040c5a0
mov ecx, dword [esi + 0x80]
cmp ecx, ebp
je 0x408ff0
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x80], ebp
mov ecx, dword [esi + 0x84]
cmp ecx, ebp
je 0x40901c
call fcn.0040aae0
mov ecx, dword [esi + 0x84]
cmp ecx, ebp
je 0x409016
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x84], ebp
mov eax, dword [esi + 0x6c]
cmp eax, ebp
je 0x4090b3
mov edi, dword [esi + 0x4c]
add edi, 0xc
dec eax
cmp eax, ebp
mov dword [esi + 0x4c], edi
mov ecx, edi
mov dword [esi + 0x6c], eax
je 0x40903f
cmp ecx, dword [esi + 0x48]
jne 0x4090a8
mov eax, dword [esi + 0x50]
lea ecx, [eax + 4]
mov dword [esi + 0x50], ecx
mov eax, dword [eax]
push eax
call fcn.004157b8
mov eax, dword [esi + 0x6c]
add esp, 4
cmp eax, ebp
jne 0x40908d
lea ebx, [esi + 0x44]
xor eax, eax
xor ecx, ecx
xor edx, edx
mov dword [ebx], eax
xor edi, edi
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
lea ebx, [esi + 0x54]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x64]
push eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
call fcn.004157b8
add esp, 4
jmp 0x4090a8
mov eax, dword [esi + 0x50]
lea edi, [esi + 0x44]
mov edx, dword [eax]
mov ecx, edx
mov dword [edi], ecx
lea ebx, [ecx + 0xffc]
mov dword [edi + 4], ebx
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x6c]
cmp eax, ebp
jne 0x409027
mov ecx, esi
mov dword [esp + 0x3c], 0xffffffff
call fcn.00415b36
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret