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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc
cmp eax, 0x190
push esi
jg 0x40f348
je 0x40f306
lea ecx, [eax - 0xa]
cmp ecx, 0xc0
ja case.default.0x40f461
movzx ecx, byte [ecx + 0x40f5f8]
jmp dword [ecx*4 + 0x40f5b0]
mov esi, dword [esp + 0x1c]
mov eax, 0xa
call fcn.0040e4a0
test eax, eax
jne 0x40f0b2
mov eax, 0xffffffd6
pop esi
add esp, 0xc
ret
mov edx, dword [esp + 0x14]
mov dword [edx], esi
mov eax, esi
pop esi
add esp, 0xc
ret
lea esi, [esp + 0x1c]
call fcn.0040eeb0
cmp eax, 0xffffff88
ja 0x40f5aa
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add eax, 0x2c
test ecx, ecx
jne 0x40f0f5
mov dword [eax], 3
mov eax, dword [eax]
test eax, eax
setl cl
pop esi
dec ecx
and eax, ecx
add esp, 0xc
ret
mov dword [eax], ecx
mov eax, ecx
xor ecx, ecx
test eax, eax
setl cl
pop esi
dec ecx
and eax, ecx
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40f11e
mov eax, 0x65
call fcn.0040e4a0
test eax, eax
je 0x40f0a8
mov edx, dword [esp + 0x14]
mov dword [edx + 4], esi
mov eax, esi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40f146
mov eax, 0x66
call fcn.0040e4a0
test eax, eax
je 0x40f0a8
mov eax, dword [esp + 0x14]
mov dword [eax + 0xc], esi
mov eax, esi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40f16e
mov eax, 0x67
call fcn.0040e4a0
test eax, eax
je 0x40f0a8
mov ecx, dword [esp + 0x14]
mov dword [ecx + 8], esi
mov eax, esi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40f196
mov eax, 0x68
call fcn.0040e4a0
test eax, eax
je 0x40f0a8
mov edx, dword [esp + 0x14]
mov dword [edx + 0x10], esi
mov eax, esi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40f1be
mov eax, 0x69
call fcn.0040e4a0
test eax, eax
je 0x40f0a8
mov eax, dword [esp + 0x14]
mov dword [eax + 0x14], esi
mov eax, esi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
mov eax, 0x6a
call fcn.0040e4a0
test eax, eax
je 0x40f0a8
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x18], esi
mov eax, esi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40f20a
mov eax, 0x6b
call fcn.0040e4a0
test eax, eax
je 0x40f0a8
mov edx, dword [esp + 0x14]
mov dword [edx + 0x1c], esi
mov eax, esi
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp dword [esp + 0x1c], eax
pop esi
setne al
mov dword [ecx + 0x20], eax
add esp, 0xc
ret
mov edx, dword [esp + 0x14]
xor eax, eax
cmp dword [esp + 0x1c], eax
pop esi
setne al
mov dword [edx + 0x24], eax
add esp, 0xc
ret
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp dword [esp + 0x1c], eax
pop esi
sete al
xor edx, edx
test eax, eax
sete dl
mov dword [ecx + 0x28], eax
mov eax, edx
add esp, 0xc
ret
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp dword [esp + 0x1c], eax
pop esi
setne al
mov dword [ecx + 0x54], eax
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40f28f
mov eax, 0xa1
call fcn.0040e4a0
test eax, eax
je 0x40f0a8
mov edx, dword [esp + 0x14]
mov dword [edx + 0x58], esi
mov eax, esi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40f2b7
mov eax, 0xa2
call fcn.0040e4a0
test eax, eax
je 0x40f0a8
mov eax, dword [esp + 0x14]
mov dword [eax + 0x60], esi
mov eax, esi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40f2df
mov eax, 0xa3
call fcn.0040e4a0
test eax, eax
je 0x40f0a8
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x5c], esi
mov eax, esi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
cmp eax, 0x18
jg 0x40f0a8
mov edx, dword [esp + 0x14]
mov dword [edx + 0x64], eax
pop esi
add esp, 0xc
ret
lea eax, [esp + 4]
push 0x190
push eax
call sym.WhiteZ_Launcher.exe_ZSTD_cParam_getBounds
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
add esp, 8
cmp ecx, 0xffffff88
ja 0x40f341
mov eax, dword [esp + 0x1c]
cmp eax, edx
jge 0x40f32f
mov eax, edx
cmp eax, esi
jle 0x40f335
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x44], eax
pop esi
add esp, 0xc
ret
mov eax, ecx
pop esi
add esp, 0xc
ret
cmp eax, 0x3e8
jg 0x40f453
je 0x40f43e
sub eax, 0x191
je 0x40f3ec
sub eax, 1
je 0x40f3ad
sub eax, 0x62
jne case.default.0x40f461
lea edx, [esp + 4]
push 0x192
push edx
call sym.WhiteZ_Launcher.exe_ZSTD_cParam_getBounds
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
add esp, 8
cmp ecx, 0xffffff88
ja 0x40f341
mov eax, dword [esp + 0x1c]
cmp eax, edx
jge 0x40f39b
mov eax, edx
cmp eax, esi
jle 0x40f3a1
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x50], eax
pop esi
add esp, 0xc
ret
lea edx, [esp + 4]
push 0x192
push edx
call sym.WhiteZ_Launcher.exe_ZSTD_cParam_getBounds
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
add esp, 8
cmp ecx, 0xffffff88
ja 0x40f341
mov eax, dword [esp + 0x1c]
cmp eax, edx
jge 0x40f3da
mov eax, edx
cmp eax, esi
jle 0x40f3e0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x4c], eax
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40f401
cmp esi, 0x100000
jge 0x40f401
mov esi, 0x100000
lea edx, [esp + 4]
push 0x191
push edx
call sym.WhiteZ_Launcher.exe_ZSTD_cParam_getBounds
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
add esp, 8
cmp ecx, 0xffffff88
ja 0x40f341
cmp esi, edx
jge 0x40f42a
mov esi, edx
cmp esi, eax
jle 0x40f430
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [eax + 0x48], esi
mov eax, esi
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp dword [esp + 0x1c], eax
pop esi
setne al
mov dword [ecx + 0x30], eax
add esp, 0xc
ret
add eax, 0xfffffc17
cmp eax, 8
ja case.default.0x40f461
jmp dword [eax*4 + 0x40f6bc]
mov esi, dword [esp + 0x1c]
mov eax, 0x3e9
call fcn.0040e4a0
test eax, eax
je 0x40f0a8
mov edx, dword [esp + 0x14]
mov dword [edx + 0x3c], esi
mov eax, esi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
mov eax, 0x3ea
call fcn.0040e4a0
test eax, eax
je 0x40f0a8
mov eax, dword [esp + 0x14]
mov dword [eax + 0x40], esi
mov eax, esi
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp dword [esp + 0x1c], eax
pop esi
setne al
mov dword [ecx + 0x6c], eax
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40f4df
mov eax, 0x3eb
call fcn.0040e4a0
test eax, eax
je 0x40f0a8
mov edx, dword [esp + 0x14]
mov dword [edx + 0x34], esi
mov eax, esi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40f507
mov eax, 0x3ec
call fcn.0040e4a0
test eax, eax
je 0x40f0a8
mov eax, dword [esp + 0x14]
mov dword [eax + 0x38], esi
mov eax, esi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
mov eax, 0x3ee
call fcn.0040e4a0
test eax, eax
je 0x40f0a8
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x70], esi
mov eax, esi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
mov eax, 0x3ef
call fcn.0040e4a0
test eax, eax
je 0x40f0a8
mov edx, dword [esp + 0x14]
mov dword [edx + 0x74], esi
mov eax, esi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
mov eax, 0x3f0
call fcn.0040e4a0
test eax, eax
je 0x40f0a8
mov eax, dword [esp + 0x14]
mov dword [eax + 0x78], esi
mov eax, esi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
mov eax, 0x3f1
call fcn.0040e4a0
test eax, eax
je 0x40f0a8
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x7c], esi
mov eax, esi
pop esi
add esp, 0xc
ret
mov eax, 0xffffffd8
pop esi
add esp, 0xc
ret