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

Disassembly:
push 0xffffffffffffffff
push 0x42974f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x32c
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x344]
push esi
push edi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
lea eax, [esp + 0x14]
push eax
mov ecx, 0x43f288
mov dword [esp + 0x348], ebx
call dword [0x42b784]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
mov edi, 0x42be70
mov byte [esp + 0x34c], 1
call fcn.00405870
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x348], 2
call dword [0x42b614]
lea ecx, [esp + 0x28]
mov byte [esp + 0x344], 1
call dword [0x42b63c]
mov ecx, 0x42eb74
lea esi, [esp + 0x64]
call fcn.004095f0
cmp eax, 0xe0010020
jne 0x40f567
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x42eb98
call dword [0x42b1b8]
call fcn.0041e040
add esp, 4
lea ecx, [esp + 0x14]
call dword [0x42b63c]
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x40f560
push eax
call dword [0x42b100]
xor eax, eax
jmp 0x40fd75
cmp dword [ebp + 0x1dc], ebx
jl 0x40f547
mov eax, dword [ebp + 0x1dc]
mov ecx, dword [ebp + 0x148c]
imul eax, eax, 0x10c
add eax, ecx
mov ecx, dword [eax + 0x54]
mov esi, dword [0x42b7c8]
lea edx, [eax + 0x80]
mov dword [esp + 0x60], edx
lea edx, [eax + 0x48]
mov dword [esp + 0x54], edx
lea edx, [eax + 0xb8]
mov dword [esp + 0x58], edx
lea edx, [eax + 0x9c]
mov dword [esp + 0x34], edx
lea edx, [eax + 0xd4]
mov dword [esp + 0x30], edx
lea edx, [eax + 0xf0]
lea ebp, [eax + 0x64]
mov dword [esp + 0x38], edx
lea edx, [eax + 0x2c]
add eax, 0x10
xor edi, edi
cmp ecx, ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x44], eax
jle 0x40f800
mov eax, dword [esp + 0x60]
push eax
push edi
lea ecx, [esp + 0x58]
push ecx
mov ecx, 0x43f288
call esi
mov byte [esp + 0x344], 3
mov eax, dword [eax]
push eax
call dword [esp + 0x78]
test eax, eax
lea ecx, [esp + 0x50]
setne byte [esp + 0x13]
mov byte [esp + 0x344], 1
call dword [0x42b63c]
cmp byte [esp + 0x13], bl
jne 0x40f547
mov edx, dword [esp + 0x54]
push edx
push edi
lea eax, [esp + 0x28]
push eax
mov ecx, 0x43f288
mov dword [esp + 0x110], ebx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x120], ebx
mov dword [esp + 0x124], ebx
call esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34c], 4
call fcn.004057f0
add esp, 8
lea ecx, [esp + 0x104]
mov byte [esp + 0x344], 5
mov eax, dword [eax]
push ecx
push eax
call fcn.00425572
lea ecx, [esp + 0x4c]
mov ebp, eax
mov byte [esp + 0x344], 4
call dword [0x42b63c]
cmp ebp, ebx
je 0x40f7dd
lea ecx, [esp + 0xc4]
call dword [0x42b76c]
push 0x42c534
lea ecx, [esp + 0x20]
mov byte [esp + 0x348], 6
call dword [0x42b1b8]
mov edx, dword [esp + 0x58]
push edx
push edi
lea eax, [esp + 0x20]
push eax
mov ecx, 0x43f288
mov byte [esp + 0x350], 7
call esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34c], 8
call fcn.004057f0
add esp, 8
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0xcc]
mov byte [esp + 0x34c], 9
call dword [0x42b764]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x348], 0xa
call dword [0x42b614]
lea ecx, [esp + 0x5c]
call dword [0x42b63c]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x344], 8
call dword [0x42b63c]
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], ebx
je 0x40fd90
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call dword [0x42b1ac]
push ecx
mov byte [esp + 0x34c], 0xb
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call dword [0x42b1ac]
mov ecx, 0x43f288
mov byte [esp + 0x34c], 8
call dword [0x42b7b4]
cmp eax, ebx
lea ecx, [esp + 0x18]
jg 0x40fd94
call dword [0x42b63c]
lea ecx, [esp + 0x1c]
call dword [0x42b63c]
lea ecx, [esp + 0xc4]
mov byte [esp + 0x344], 4
call dword [0x42b768]
lea ecx, [esp + 0x20]
mov byte [esp + 0x344], 1
call dword [0x42b63c]
add edi, 1
cmp edi, dword [esp + 0x2c]
jl 0x40f5e8
mov ebp, dword [esp + 0x24]
xor edi, edi
cmp dword [ebp + 0xc], ebx
jle 0x40f8bf
jmp 0x40f810
push ebp
push edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x43f288
mov dword [esp + 0x110], ebx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x120], ebx
mov dword [esp + 0x124], ebx
call esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34c], 0xc
call fcn.004057f0
add esp, 8
lea ecx, [esp + 0x104]
mov byte [esp + 0x344], 0xd
mov eax, dword [eax]
push ecx
push eax
call fcn.00425572
test eax, eax
lea ecx, [esp + 0x24]
sete byte [esp + 0x13]
mov byte [esp + 0x344], 0xc
call dword [0x42b63c]
cmp byte [esp + 0x13], bl
lea ecx, [esp + 0x18]
jne 0x40fdbd
mov byte [esp + 0x344], 1
call dword [0x42b63c]
add edi, 1
cmp edi, dword [ebp + 0xc]
jl 0x40f810
mov edx, dword [esp + 0x34]
xor edi, edi
cmp dword [edx + 0xc], ebx
jle 0x40f985
mov eax, dword [esp + 0x34]
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x43f288
mov dword [esp + 0x110], ebx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x120], ebx
mov dword [esp + 0x124], ebx
call esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34c], 0xe
call fcn.004057f0
add esp, 8
lea ecx, [esp + 0x104]
mov byte [esp + 0x344], 0xf
mov eax, dword [eax]
push ecx
push eax
call fcn.00425572
test eax, eax
lea ecx, [esp + 0x24]
sete byte [esp + 0x13]
mov byte [esp + 0x344], 0xe
call dword [0x42b63c]
cmp byte [esp + 0x13], bl
lea ecx, [esp + 0x18]
jne 0x40fdbd
mov byte [esp + 0x344], 1
call dword [0x42b63c]
mov edx, dword [esp + 0x34]
add edi, 1
cmp edi, dword [edx + 0xc]
jl 0x40f8ce
mov eax, dword [esp + 0x30]
xor edi, edi
cmp dword [eax + 0xc], ebx
jle 0x40fb6e
mov ecx, dword [esp + 0x30]
push ecx
push edi
lea edx, [esp + 0x28]
push edx
mov ecx, 0x43f288
mov dword [esp + 0x110], ebx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x120], ebx
mov dword [esp + 0x124], ebx
call esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34c], 0x10
call fcn.004057f0
add esp, 8
lea edx, [esp + 0x104]
mov byte [esp + 0x344], 0x11
mov eax, dword [eax]
push edx
push eax
call fcn.00425572
test eax, eax
lea ecx, [esp + 0x24]
sete byte [esp + 0x13]
mov byte [esp + 0x344], 0x10
call dword [0x42b63c]
cmp byte [esp + 0x13], bl
jne 0x40fdb9
lea ecx, [esp + 0xc4]
call dword [0x42b76c]
push 0x42c534
lea ecx, [esp + 0x20]
mov byte [esp + 0x348], 0x12
call dword [0x42b1b8]
mov byte [esp + 0x344], 0x13
mov eax, dword [esp + 0x38]
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x43f288
call esi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34c], 0x14
call fcn.004057f0
add esp, 8
push eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0xcc]
mov byte [esp + 0x34c], 0x15
call dword [0x42b764]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x348], 0x16
call dword [0x42b614]
lea ecx, [esp + 0x2c]
call dword [0x42b63c]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x344], 0x14
call dword [0x42b63c]
mov edx, dword [esp + 0x1c]
cmp dword [edx - 0xc], ebx
je 0x40fde4
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call dword [0x42b1ac]
push ecx
mov byte [esp + 0x34c], 0x17
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call dword [0x42b1ac]
mov ecx, 0x43f288
mov byte [esp + 0x34c], 0x14
call dword [0x42b7b4]
cmp eax, ebx
lea ecx, [esp + 0x18]
jg 0x40fde8
call dword [0x42b63c]
lea ecx, [esp + 0x1c]
call dword [0x42b63c]
lea ecx, [esp + 0xc4]
mov byte [esp + 0x344], 0x10
call dword [0x42b768]
lea ecx, [esp + 0x20]
mov byte [esp + 0x344], 1
call dword [0x42b63c]
mov eax, dword [esp + 0x30]
add edi, 1
cmp edi, dword [eax + 0xc]
jl 0x40f994
mov ecx, dword [esp + 0x28]
xor edi, edi
cmp dword [ecx + 0xc], ebx
jle 0x40fd57
mov edx, dword [esp + 0x28]
push edx
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, 0x43f288
mov dword [esp + 0x110], ebx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x120], ebx
mov dword [esp + 0x124], ebx
call esi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34c], 0x18
call fcn.004057f0
add esp, 8
lea ecx, [esp + 0x104]
mov byte [esp + 0x344], 0x19
mov eax, dword [eax]
push ecx
push eax
call fcn.00425572
test eax, eax
lea ecx, [esp + 0x38]
sete byte [esp + 0x13]
mov byte [esp + 0x344], 0x18
call dword [0x42b63c]
cmp byte [esp + 0x13], bl
jne 0x40fe2b
lea ecx, [esp + 0xc4]
call dword [0x42b76c]
push 0x42c534
lea ecx, [esp + 0x24]
mov byte [esp + 0x348], 0x1a
call dword [0x42b1b8]
mov edx, dword [esp + 0x44]
push edx
push edi
lea eax, [esp + 0x20]
push eax
mov ecx, 0x43f288
mov byte [esp + 0x350], 0x1b
call esi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34c], 0x1c
call fcn.004057f0
add esp, 8
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xcc]
mov byte [esp + 0x34c], 0x1d
call dword [0x42b764]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x348], 0x1e
call dword [0x42b614]
lea ecx, [esp + 0x24]
call dword [0x42b63c]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x344], 0x1c
call dword [0x42b63c]
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 0xc], ebx
je 0x40fe02
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call dword [0x42b1ac]
push ecx
mov byte [esp + 0x34c], 0x1f
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
call dword [0x42b1ac]
mov ecx, 0x43f288
mov byte [esp + 0x34c], 0x1c
call dword [0x42b7b4]
cmp eax, ebx
lea ecx, [esp + 0x18]
jg 0x40fe06
call dword [0x42b63c]
lea ecx, [esp + 0x20]
call dword [0x42b63c]
lea ecx, [esp + 0xc4]
mov byte [esp + 0x344], 0x18
call dword [0x42b768]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x344], 1
call dword [0x42b63c]
mov ecx, dword [esp + 0x28]
add edi, 1
cmp edi, dword [ecx + 0xc]
jl 0x40fb7d
lea ecx, [esp + 0x14]
call dword [0x42b63c]
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x40fd70
push eax
call dword [0x42b100]
mov eax, 1
mov ecx, dword [esp + 0x33c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x338
ret 4
lea ecx, [esp + 0x18]
call dword [0x42b63c]
lea ecx, [esp + 0x1c]
call dword [0x42b63c]
mov byte [esp + 0x344], 4
lea ecx, [esp + 0xc4]
call dword [0x42b768]
lea ecx, [esp + 0x20]
call dword [0x42b63c]
lea ecx, [esp + 0x14]
call dword [0x42b63c]
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x40f560
push eax
call dword [0x42b100]
xor eax, eax
jmp 0x40fd75
lea ecx, [esp + 0x18]
call dword [0x42b63c]
lea ecx, [esp + 0x1c]
call dword [0x42b63c]
mov byte [esp + 0x344], 0x10
jmp 0x40fdac
lea ecx, [esp + 0x18]
call dword [0x42b63c]
lea ecx, [esp + 0x20]
call dword [0x42b63c]
lea ecx, [esp + 0xc4]
mov byte [esp + 0x344], 0x18
call dword [0x42b768]
lea ecx, [esp + 0x1c]
jmp 0x40fdbd