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

Disassembly:
push 0xffffffffffffffff
push 0x448f74
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8a8
mov eax, dword [0x45d874]
mov edx, dword [esp + 0x8d4]
xor eax, esp
push ebx
push ebp
mov dword [esp + 0x8ac], eax
mov eax, dword [esp + 0x8e0]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
xor ebp, ebp
mov byte [esp + 0xb4], 0
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0xb5]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x8c0], ebp
stosb byte es:[edi], al
mov dword [esp + 0x1c], ebp
mov edi, dword [edx + 4]
test edi, edi
mov dword [esp + 0x14], ebp
jne 0x40f32c
xor eax, eax
jmp 0x40f344
mov ecx, dword [edx + 8]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x1c], eax
jge 0x40f8b1
cmp dword [edi + ebp + 0x18], 0x10
jb 0x40f35b
mov ecx, dword [edi + ebp + 4]
jmp 0x40f35f
lea ecx, [edi + ebp + 4]
lea edx, [esp + 0xb4]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40f366
lea ecx, [esp + 0xb4]
push str.datapack
push ecx
call fcn.0042e4b0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40f3ae
lea edx, [esp + 0xb4]
push str.data_pack
push edx
call fcn.0042e4b0
add esp, 8
test eax, eax
mov dword [esp + 0x18], eax
je 0x40f847
mov ebx, eax
mov ecx, dword [esi + 0xec]
add ebx, 0xa
inc ecx
push ebx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0xec], ecx
call dword [0x44b3e4]
mov ecx, eax
lea edi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40f3d0
sub ecx, edi
push ecx
lea edx, [esi + 0x68]
push eax
mov ecx, edx
call fcn.00404f00
mov eax, dword [esi + 0xc]
xor edi, edi
cmp eax, edi
je 0x40f402
mov ecx, dword [esi + 0xcc]
push edi
push ecx
push 0x4404
push eax
call dword [0x44b580]
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], edi
mov byte [esp + 0x90], 0
mov eax, dword [esi + 0xe4]
mov ecx, dword [esi + 0xdc]
lea edx, [esp + 0x8c]
push edx
push ebx
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x8d0], 1
mov dword [esp + 0xb8], edi
call fcn.0040c660
mov ecx, dword [esi + 0xd4]
mov edi, eax
mov eax, dword [esp + 0xa8]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esi + 0xd8]
push eax
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x20], edi
call fcn.00409b70
test edi, edi
mov ebp, eax
jl 0x40f6bd
test ebp, ebp
jl 0x40f6bd
cmp dword [esp + 0x8e0], 0x10
mov edi, dword [esp + 0x8cc]
jae 0x40f49b
lea edi, [esp + 0x8cc]
lea eax, [ebp + 1]
push eax
mov ecx, esi
call fcn.00409f50
push eax
push edi
lea ecx, [esp + 0xbc]
push str._s.w_s
push ecx
call fcn.0042c4f2
add esp, 0x10
cmp eax, 0xffffffff
je 0x40f85c
xor ebx, ebx
mov edi, 0xf
lea eax, [esp + 0xb4]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f4e3
sub eax, edx
push eax
lea edx, [esp + 0xb8]
push edx
lea ecx, [esp + 0x5c]
call fcn.00404f00
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esi + 0x164]
mov byte [esp + 0x8c8], 2
call fcn.0040c2a0
cmp dword [esp + 0x6c], 0x10
mov byte [esp + 0x8c0], 1
jb 0x40f537
mov edx, dword [esp + 0x58]
push edx
call fcn.0043afc4
add esp, 4
mov eax, dword [esi + 0x168]
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x30]
cmp ebx, eax
mov dword [esp + 0x6c], edi
mov byte [esp + 0x58], 0
je 0x40f6bd
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x44]
push eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], 0
mov byte [esp + 0x80], 0
call fcn.00404e10
mov eax, dword [esp + 0x84]
test eax, eax
mov byte [esp + 0x8c0], 3
jne 0x40f5bd
lea eax, [esp + 0xb4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f5a2
sub eax, edx
push eax
lea ecx, [esp + 0xb8]
push ecx
lea ecx, [esp + 0x78]
call fcn.00404f00
mov eax, dword [esi + 0xd8]
mov ecx, dword [eax + ebp*8]
mov edi, dword [esp + 0xac]
mov edx, dword [esp + 0x2c]
push edi
add edx, 4
push edx
add ecx, 4
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0xffffffffffffffff
push 0
lea edx, [esp + 0xa0]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push edx
mov byte [ecx + 4], 0
call fcn.00404e10
mov ecx, esi
call fcn.0040ba20
test eax, eax
je 0x40f64e
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xe4]
mov edx, dword [esi + 0xdc]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00409bc0
mov dword [esi + 0xe4], eax
mov eax, dword [esi + 0xd8]
mov ecx, dword [eax + ebp*8]
lea eax, [eax + ebp*8]
sub ecx, edi
mov dword [eax], ecx
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x40f683
mov byte [ebx + 0x60], 1
jmp 0x40f683
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
push ecx
lea edx, [esp + 0xb8]
push edx
push 0x7d
push edi
call fcn.00405580
mov ecx, dword [esi + 0x10]
mov eax, dword [edi]
mov edx, dword [eax - 0xc]
add esp, 0x10
test ecx, ecx
je 0x40f683
push ecx
push edx
push 1
push eax
call fcn.0042c761
add esp, 0x10
cmp dword [esp + 0x88], 0x10
mov byte [esp + 0x8c0], 1
jb 0x40f6a2
mov eax, dword [esp + 0x74]
push eax
call fcn.0043afc4
add esp, 4
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + eax + 0x18]
mov ebp, 0x10
cmp edx, ebp
jb 0x40f6db
mov ecx, dword [ecx + eax + 4]
jmp 0x40f6df
lea ecx, [ecx + eax + 4]
mov ebx, 0xf
mov eax, ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
lea edi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40f700
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.00404f00
lea edx, [esp + 0x38]
lea edi, [esi + 0x128]
push edx
mov ecx, edi
mov byte [esp + 0x8c4], 4
call fcn.0040b5a0
cmp eax, dword [edi + 4]
mov dword [esp + 0x10], eax
je 0x40f763
cmp dword [eax + 0x24], ebp
mov ecx, dword [eax + 0x20]
jb 0x40f744
mov eax, dword [eax + 0x10]
jmp 0x40f747
add eax, 0x10
push ecx
push eax
mov eax, dword [esp + 0x54]
push eax
push 0
lea ecx, [esp + 0x48]
call fcn.00404880
test eax, eax
jl 0x40f763
lea eax, [esp + 0x10]
jmp 0x40f76e
mov ecx, dword [edi + 4]
mov dword [esp + 0x28], ecx
lea eax, [esp + 0x28]
mov ebp, dword [eax]
cmp dword [esp + 0x50], 0x10
mov byte [esp + 0x8c0], 1
jb 0x40f78c
mov edx, dword [esp + 0x3c]
push edx
call fcn.0043afc4
add esp, 4
cmp ebp, dword [esi + 0x12c]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
je 0x40f7b2
push ebp
lea eax, [esp + 0x38]
push eax
mov ecx, edi
call fcn.0040e6e0
cmp dword [esi + 0x80], 0x10
jb 0x40f7c0
mov eax, dword [esi + 0x6c]
jmp 0x40f7c3
lea eax, [esi + 0x6c]
push eax
lea ecx, [esp + 0x4b8]
push 0x44c360
push ecx
call fcn.0042c4f2
lea eax, [esp + 0x4c0]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f7e3
mov ecx, dword [esi + 0x10]
sub eax, edx
test ecx, ecx
je 0x40f807
push ecx
push eax
lea edx, [esp + 0x4bc]
push 1
push edx
call fcn.0042c761
add esp, 0x10
cmp dword [esp + 0xa4], 0x10
mov byte [esp + 0x8c0], 0
jb 0x40f829
mov eax, dword [esp + 0x90]
push eax
call fcn.0043afc4
add esp, 4
mov ebp, dword [esp + 0x14]
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa0], 0
mov byte [esp + 0x90], 0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x1c], ecx
add ebp, 0x1c
jmp 0x40f31d
mov edx, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0xb8]
push ecx
push 0x7d
push edx
call fcn.00405580
mov eax, dword [esp + 0xb4]
mov esi, 0x10
add esp, 0x10
cmp eax, esi
jb 0x40f894
mov eax, dword [esp + 0x90]
push eax
call fcn.0043afc4
add esp, 4
cmp dword [esp + 0x8e0], esi
jb 0x40f8ad
mov ecx, dword [esp + 0x8cc]
push ecx
call fcn.0043afc4
add esp, 4
xor eax, eax
jmp 0x40f8d0
cmp dword [esp + 0x8e0], 0x10
jb 0x40f8cb
mov edx, dword [esp + 0x8cc]
push edx
call fcn.0043afc4
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x8b8]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x8ac]
pop ebp
pop ebx
xor ecx, esp
call fcn.0042c5af
add esp, 0x8b4
ret 0x24