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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f273
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
push esi
push edi
mov eax, dword [0x442014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040f470
push eax
mov dword [ebp - 4], 0
call fcn.004095c0
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x4301a4]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x1c]
movzx ecx, ax
mov dword [ebp - 0x18], ecx
test edi, edi
je 0x40fd1f
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4301a4]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x40fd1c
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x4301a4]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 4]
sub eax, dword [esi]
sar eax, 3
imul eax, eax, 0xeeeeeeef
test eax, eax
jne 0x40fd62
push ecx
lea ecx, [ebp - 0xa8]
call fcn.0040fea0
push eax
push dword [ebx + 8]
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0040ffb0
lea ecx, [ebp - 0xa8]
call fcn.00405a20
jmp 0x40fe67
mov edi, dword [ebx + 8]
cmp edi, eax
jbe 0x40fd90
push ecx
lea ecx, [ebp - 0xa8]
call fcn.0040fea0
push eax
push edi
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.0040ff20
lea ecx, [ebp - 0xa8]
call fcn.00405a20
cmp dword [esi + 0x18], 0
lea eax, [esi + 0xc]
mov dword [ebp - 0x1c], eax
jbe 0x40fdd7
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.00410410
mov ecx, dword [ebp - 0x1c]
xor esi, esi
mov edi, dword [eax]
mov edx, dword [eax + 4]
mov eax, esi
mov ecx, dword [ecx]
and esi, 0x1f
push edx
shr eax, 5
push edi
push esi
mov dword [ebp - 0x28], ecx
lea eax, [ecx + eax*4]
mov ecx, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004101a0
mov edi, dword [ebx + 8]
mov esi, dword [ebp - 0x14]
test edi, edi
je 0x40fe67
xor edx, edx
mov eax, dword [esi]
add eax, edx
mov dword [eax], 0xffffffff
lea esi, [eax + 4]
mov dword [eax + 0x68], 0xffffffff
mov dword [eax + 0x6c], 0x7fffffff
mov dword [eax + 0x70], 0
cmp dword [eax + 0x18], 8
jb 0x40fe0c
mov esi, dword [eax + 4]
xor ecx, ecx
mov dword [eax + 0x14], 0
mov word [esi], cx
lea esi, [eax + 0x1c]
cmp dword [eax + 0x30], 8
jb 0x40fe24
mov esi, dword [eax + 0x1c]
mov dword [eax + 0x2c], ecx
add edx, 0x78
xor ecx, ecx
mov word [esi], cx
mov esi, dword [ebp - 0x14]
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x44], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x40], 6
mov word [eax + 0x48], cx
mov dword [eax + 0x4c], 0x201
mov dword [eax + 0x54], 0
mov dword [eax + 0x50], 0
sub edi, 1
jne 0x40fde1
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x40], 8
lea eax, [ecx + 0x2c]
jb 0x40fe76
mov eax, dword [ecx + 0x2c]
mov dword [ecx + 0x3c], 0
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4