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

Disassembly:
push 0xffffffffffffffff
push 0x4ece8b
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x17c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x194]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1a4]
mov edi, edx
mov dword [esp + 0x34], eax
mov esi, ecx
mov ecx, edi
sub ecx, esi
mov eax, 0x2fa0be83
imul ecx
mov ecx, dword [esp + 0x1a8]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
imul ebx, ebx, 0xac
push ecx
add ebx, esi
lea eax, [edi - 0xac]
push ebx
mov ecx, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], edi
call fcn.00410790
add esp, 8
lea ebp, [ebx + 0xac]
cmp esi, ebx
jae 0x40fcca
lea esp, [esp]
lea edi, [ebx - 0xac]
mov esi, ebx
mov dword [esp + 0x1c], edi
call fcn.0040c370
test al, al
jne 0x40fcca
mov esi, edi
mov edi, ebx
call fcn.0040c370
test al, al
jne 0x40fcca
mov ebx, esi
cmp dword [esp + 0x28], ebx
jb 0x40fca0
cmp ebp, dword [esp + 0x24]
jae 0x40fcf6
mov esi, ebx
mov edi, ebp
call fcn.0040c370
test al, al
jne 0x40fcf6
mov esi, ebp
mov edi, ebx
call fcn.0040c370
test al, al
jne 0x40fcf6
add ebp, 0xac
cmp ebp, dword [esp + 0x24]
jb 0x40fcd0
mov eax, ebp
mov esi, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
cmp eax, dword [esp + 0x24]
jae 0x40fe84
lea edx, [eax + 0x38]
mov dword [esp + 0x14], edx
jmp 0x40fd19
mov eax, dword [esp + 0x18]
mov esi, eax
mov edi, ebx
call fcn.0040c370
test al, al
jne 0x40fe57
mov edi, dword [esp + 0x18]
mov esi, ebx
call fcn.0040c370
test al, al
jne 0x40fe7c
lea eax, [esp + 0x38]
mov edi, ebp
push eax
add ebp, 0xac
call fcn.0040d330
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
push ecx
mov ecx, edi
mov dword [esp + 0x1a8], 0
call fcn.00406140
mov esi, dword [esp + 0x14]
push 0xffffffffffffffff
lea eax, [esi - 0x1c]
push 0
push eax
lea ecx, [edi + 0x1c]
call fcn.00406140
push 0xffffffffffffffff
push 0
push esi
lea ecx, [edi + 0x38]
call fcn.00406140
push 0xffffffffffffffff
lea eax, [esi + 0x1c]
push 0
push eax
lea ecx, [edi + 0x54]
call fcn.00406140
push 0xffffffffffffffff
lea eax, [esi + 0x38]
push 0
push eax
lea ecx, [edi + 0x70]
call fcn.00406140
push 0xffffffffffffffff
lea eax, [esi + 0x54]
push 0
push eax
lea ecx, [edi + 0x8c]
call fcn.00406140
mov dl, byte [esi + 0x70]
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x40]
push eax
mov byte [edi + 0xa8], dl
call fcn.00406140
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esi - 0x1c]
call fcn.00406140
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x78]
push edx
mov ecx, esi
call fcn.00406140
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x94]
push eax
lea ecx, [esi + 0x1c]
call fcn.00406140
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esi + 0x38]
call fcn.00406140
push 0xffffffffffffffff
push 0
lea edx, [esp + 0xcc]
push edx
lea ecx, [esi + 0x54]
call fcn.00406140
mov al, byte [esp + 0xe0]
lea ecx, [esp + 0x38]
push ecx
mov byte [esi + 0x70], al
mov dword [esp + 0x1a0], 0xffffffff
call fcn.0040c5e0
jmp 0x40fe5b
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add eax, 0xac
add esi, 0xac
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
cmp eax, dword [esp + 0x24]
jb 0x40fd15
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp esi, dword [esp + 0x28]
jbe 0x41000c
add esi, 0xffffff8c
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x14]
add edi, 0xffffffc8
mov esi, ebx
call fcn.0040c370
mov esi, dword [esp + 0x14]
test al, al
jne 0x40ffdf
add esi, 0xffffffc8
mov edi, ebx
call fcn.0040c370
test al, al
jne 0x410000
lea edx, [esp + 0x38]
sub ebx, 0xac
push edx
mov edi, ebx
call fcn.0040d330
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
add eax, 0xffffffc8
push 0
push eax
mov ecx, ebx
mov dword [esp + 0x1a8], 1
mov dword [esp + 0x2c], eax
call fcn.00406140
mov esi, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
lea edi, [esi - 0x1c]
push edi
lea ecx, [ebx + 0x1c]
call fcn.00406140
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebx + 0x38]
call fcn.00406140
push 0xffffffffffffffff
lea eax, [esi + 0x1c]
push 0
push eax
lea ecx, [ebx + 0x54]
call fcn.00406140
push 0xffffffffffffffff
lea eax, [esi + 0x38]
push 0
push eax
lea ecx, [ebx + 0x70]
call fcn.00406140
push 0xffffffffffffffff
lea eax, [esi + 0x54]
push 0
push eax
lea ecx, [ebx + 0x8c]
call fcn.00406140
mov al, byte [esi + 0x70]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x2c]
mov byte [ebx + 0xa8], al
call fcn.00406140
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x5c]
push edx
mov ecx, edi
call fcn.00406140
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x78]
push eax
mov ecx, esi
call fcn.00406140
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esi + 0x1c]
call fcn.00406140
push 0xffffffffffffffff
push 0
lea edx, [esp + 0xb0]
push edx
lea ecx, [esi + 0x38]
call fcn.00406140
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xcc]
push eax
lea ecx, [esi + 0x54]
call fcn.00406140
mov cl, byte [esp + 0xe0]
lea edx, [esp + 0x38]
push edx
mov byte [esi + 0x70], cl
mov dword [esp + 0x1a0], 0xffffffff
call fcn.0040c5e0
mov eax, dword [esp + 0x1c]
sub eax, 0xac
sub esi, 0xac
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], esi
cmp dword [esp + 0x28], eax
jb 0x40fe95
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp esi, dword [esp + 0x28]
jne 0x41029b
cmp eax, dword [esp + 0x24]
je 0x41065d
cmp ebp, eax
je 0x41013f
lea eax, [esp + 0x38]
push eax
mov edi, ebx
call fcn.0040d330
push 0xffffffffffffffff
push 0
push ebp
mov ecx, ebx
mov dword [esp + 0x1a8], 2
call fcn.00406140
push 0xffffffffffffffff
push 0
lea edi, [ebp + 0x1c]
push edi
lea ecx, [ebx + 0x1c]
call fcn.00406140
push 0xffffffffffffffff
lea eax, [ebp + 0x38]
push 0
push eax
lea ecx, [ebx + 0x38]
call fcn.00406140
push 0xffffffffffffffff
lea eax, [ebp + 0x54]
push 0
push eax
lea ecx, [ebx + 0x54]
call fcn.00406140
push 0xffffffffffffffff
lea eax, [ebp + 0x70]
push 0
push eax
lea ecx, [ebx + 0x70]
call fcn.00406140
push 0xffffffffffffffff
lea eax, [ebp + 0x8c]
push 0
push eax
lea ecx, [ebx + 0x8c]
call fcn.00406140
mov cl, byte [ebp + 0xa8]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x40]
mov byte [ebx + 0xa8], cl
push edx
mov ecx, ebp
call fcn.00406140
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x5c]
push eax
mov ecx, edi
call fcn.00406140
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x78]
push ecx
lea ecx, [ebp + 0x38]
call fcn.00406140
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x94]
push edx
lea ecx, [ebp + 0x54]
call fcn.00406140
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xb0]
push eax
lea ecx, [ebp + 0x70]
call fcn.00406140
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [ebp + 0x8c]
call fcn.00406140
mov dl, byte [esp + 0xe0]
mov byte [ebp + 0xa8], dl
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x1a0], 0xffffffff
call fcn.0040c5e0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov edi, ebx
lea ecx, [esp + 0x38]
add eax, 0xac
push ecx
add ebp, 0xac
mov dword [esp + 0x18], edi
add ebx, 0xac
mov dword [esp + 0x1c], eax
call fcn.0040d330
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
push edi
mov dword [esp + 0x1a8], 3
call fcn.00406140
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
lea eax, [edi + 0x1c]
push 0
push eax
add ecx, 0x1c
call fcn.00406140
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
lea eax, [edi + 0x38]
push 0
push eax
add ecx, 0x38
call fcn.00406140
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
lea eax, [edi + 0x54]
push 0
push eax
add ecx, 0x54
call fcn.00406140
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
lea eax, [edi + 0x70]
push 0
push eax
add ecx, 0x70
call fcn.00406140
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
lea eax, [edi + 0x8c]
push 0
push eax
add ecx, 0x8c
call fcn.00406140
mov dl, byte [edi + 0xa8]
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
mov byte [eax + 0xa8], dl
call fcn.00406140
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x5c]
push edx
lea ecx, [edi + 0x1c]
call fcn.00406140
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x78]
push eax
lea ecx, [edi + 0x38]
call fcn.00406140
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x94]
push ecx
lea ecx, [edi + 0x54]
call fcn.00406140
push 0xffffffffffffffff
push 0
lea edx, [esp + 0xb0]
push edx
lea ecx, [edi + 0x70]
call fcn.00406140
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xcc]
push eax
lea ecx, [edi + 0x8c]
call fcn.00406140
mov cl, byte [esp + 0xe0]
lea edx, [esp + 0x38]
push edx
mov byte [edi + 0xa8], cl
mov dword [esp + 0x1a0], 0xffffffff
call fcn.0040c5e0
mov eax, dword [esp + 0x18]
jmp 0x40fd02
sub esi, 0xac
mov dword [esp + 0x1c], esi
cmp eax, dword [esp + 0x24]
jne 0x41050b
sub ebx, 0xac
cmp esi, ebx
je 0x4103d4
lea eax, [esp + 0x38]
push eax
mov edi, esi
call fcn.0040d330
push 0xffffffffffffffff
push 0
push ebx
mov ecx, esi
mov dword [esp + 0x1a8], 4
call fcn.00406140
push 0xffffffffffffffff
push 0
lea edi, [ebx + 0x1c]
push edi
lea ecx, [esi + 0x1c]
call fcn.00406140
push 0xffffffffffffffff
lea eax, [ebx + 0x38]
push 0
push eax
lea ecx, [esi + 0x38]
call fcn.00406140
push 0xffffffffffffffff
lea eax, [ebx + 0x54]
push 0
push eax
lea ecx, [esi + 0x54]
call fcn.00406140
push 0xffffffffffffffff
lea eax, [ebx + 0x70]
push 0
push eax
lea ecx, [esi + 0x70]
call fcn.00406140
push 0xffffffffffffffff
lea eax, [ebx + 0x8c]
push 0
push eax
lea ecx, [esi + 0x8c]
call fcn.00406140
mov cl, byte [ebx + 0xa8]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x40]
mov byte [esi + 0xa8], cl
push edx
mov ecx, ebx
call fcn.00406140
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x5c]
push eax
mov ecx, edi
call fcn.00406140
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x78]
push ecx
lea ecx, [ebx + 0x38]
call fcn.00406140
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x94]
push edx
lea ecx, [ebx + 0x54]
call fcn.00406140
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xb0]
push eax
lea ecx, [ebx + 0x70]
call fcn.00406140
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [ebx + 0x8c]
call fcn.00406140
mov dl, byte [esp + 0xe0]
mov byte [ebx + 0xa8], dl
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x1a0], 0xffffffff
call fcn.0040c5e0
lea ecx, [esp + 0x38]
push ecx
mov edi, ebx
sub ebp, 0xac
call fcn.0040d330
push 0xffffffffffffffff
push 0
push ebp
mov ecx, ebx
mov dword [esp + 0x1a8], 5
call fcn.00406140
push 0xffffffffffffffff
push 0
lea edi, [ebp + 0x1c]
push edi
lea ecx, [ebx + 0x1c]
call fcn.00406140
push 0xffffffffffffffff
lea eax, [ebp + 0x38]
push 0
push eax
lea ecx, [ebx + 0x38]
mov dword [esp + 0x2c], eax
call fcn.00406140
push 0xffffffffffffffff
lea eax, [ebp + 0x54]
push 0
push eax
lea ecx, [ebx + 0x54]
mov dword [esp + 0x20], eax
call fcn.00406140
push 0xffffffffffffffff
lea eax, [ebp + 0x70]
push 0
push eax
lea ecx, [ebx + 0x70]
mov dword [esp + 0x3c], eax
call fcn.00406140
push 0xffffffffffffffff
lea eax, [ebp + 0x8c]
push 0
push eax
lea ecx, [ebx + 0x8c]
mov dword [esp + 0x38], eax
call fcn.00406140
mov dl, byte [ebp + 0xa8]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x40]
push eax
mov ecx, ebp
mov byte [ebx + 0xa8], dl
call fcn.00406140
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x5c]
push ecx
mov ecx, edi
call fcn.00406140
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x78]
push edx
call fcn.00406140
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x94]
push eax
call fcn.00406140
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.00406140
push 0xffffffffffffffff
push 0
lea edx, [esp + 0xcc]
mov ecx, dword [esp + 0x34]
push edx
call fcn.00406140
mov al, byte [esp + 0xe0]
lea ecx, [esp + 0x38]
push ecx
mov byte [ebp + 0xa8], al
mov dword [esp + 0x1a0], 0xffffffff
call fcn.0040c5e0
mov eax, dword [esp + 0x18]
jmp 0x40fd02
lea edx, [esp + 0xe4]
push edx
mov edi, eax
call fcn.0040d330
mov edi, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
push esi
mov ecx, edi
mov dword [esp + 0x1a8], 6
call fcn.00406140
push 0xffffffffffffffff
lea eax, [esi + 0x1c]
push 0
push eax
lea ecx, [edi + 0x1c]
mov dword [esp + 0x38], eax
call fcn.00406140
push 0xffffffffffffffff
lea eax, [esi + 0x38]
push 0
push eax
lea ecx, [edi + 0x38]
mov dword [esp + 0x3c], eax
call fcn.00406140
push 0xffffffffffffffff
lea eax, [esi + 0x54]
push 0
push eax
lea ecx, [edi + 0x54]
mov dword [esp + 0x2c], eax
call fcn.00406140
push 0xffffffffffffffff
lea eax, [esi + 0x70]
push 0
push eax
lea ecx, [edi + 0x70]
mov dword [esp + 0x20], eax
call fcn.00406140
push 0xffffffffffffffff
lea eax, [esi + 0x8c]
push 0
push eax
lea ecx, [edi + 0x8c]
mov dword [esp + 0x24], eax
call fcn.00406140
mov al, byte [esi + 0xa8]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xec]
push ecx
mov ecx, esi
mov byte [edi + 0xa8], al
call fcn.00406140
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x108]
push edx
call fcn.00406140
mov ecx, dword [esp + 0x30]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x124]
push eax
call fcn.00406140
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x140]
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00406140
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x15c]
push edx
call fcn.00406140
push 0xffffffffffffffff
push 0
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x178]
push eax
call fcn.00406140
mov cl, byte [esp + 0x18c]
lea edx, [esp + 0xe4]
push edx
mov byte [esi + 0xa8], cl
mov dword [esp + 0x1a0], 0xffffffff
call fcn.0040c5e0
add edi, 0xac
mov dword [esp + 0x18], edi
mov eax, edi
jmp 0x40fd02
mov eax, dword [esp + 0x34]
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov ecx, dword [esp + 0x194]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x17c]
xor ecx, esp
call fcn.004c9392
add esp, 0x18c
ret