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

Disassembly:
push 0xffffffffffffffff
push 0x4278b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push esi
mov esi, ecx
lea eax, [esp + 4]
lea ecx, [esp + 4]
add eax, ecx
lea edx, [esp + 4]
lea ecx, [esp + 4]
mov dword [esp + 4], esi
imul edx, ecx
cmp edx, eax
jne 0x40f2ad
push ebx
xor eax, eax
push edi
mov esi, 1
mov dword [esp + 0x14], eax
lea edi, [esp + 0x14]
test eax, eax
je 0x40f146
lea ecx, [esp + 0xc]
dec ecx
mov dl, byte [ecx + esi]
mov bl, byte [ecx + eax]
cmp dl, bl
je 0x40f146
mov eax, dword [esp + eax*4 + 0x10]
jmp 0x40f164
inc esi
add edi, 4
lea ecx, [esp + 0xc]
inc eax
dec ecx
mov dl, byte [ecx + esi]
mov bl, byte [ecx + eax]
cmp dl, bl
je 0x40f15e
mov dword [edi], eax
jmp 0x40f164
mov ecx, dword [esp + eax*4 + 0x10]
mov dword [edi], ecx
cmp esi, 0xa
jl 0x40f12d
mov eax, 1
mov edx, 2
push ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 3
lea ebx, [esp + 0x24]
mov edi, dword [ebx]
inc eax
mov dword [esp + 0x2c], eax
cmp edx, 1
mov dword [esp + eax*4 + 0x2c], edi
mov dword [esp + 0x14], 0
jg 0x40f1c9
mov esi, 2
lea ecx, [ebx + 4]
sub esi, edx
mov eax, dword [ecx]
lea ebp, [eax + edi*2]
cmp dword [esp + ebp*4 + 0x2c], 0
je 0x40f1c3
mov ebp, dword [esp + 0x14]
inc ebp
mov dword [esp + 0x14], ebp
mov dword [esp + ebp*4 + 0x14], eax
add ecx, 4
dec esi
jne 0x40f1aa
mov eax, dword [esp + 0x2c]
add ebx, 4
dec eax
inc edx
lea ecx, [edx - 1]
cmp ecx, 3
jle 0x40f188
mov ecx, 2
mov edx, 1
xor eax, eax
test eax, eax
jge 0x40f1f8
cmp ecx, 4
jge 0x40f20d
test eax, eax
jge 0x40f1f8
add eax, 0x10
jmp 0x40f211
cmp ecx, 4
jl 0x40f202
sub ecx, 4
jmp 0x40f211
lea esi, [eax + ecx]
mov edi, dword [esp + esi*4 + 0x3c]
test edi, edi
je 0x40f211
add eax, 8
dec ecx
lea esi, [eax + ecx]
sub eax, 4
mov dword [esp + esi*4 + 0x3c], edx
inc edx
inc ecx
cmp edx, 0x10
jle 0x40f1e6
mov ebp, dword [esp + 0x10]
mov edi, 1
mov ecx, 1
xor ebx, ebx
cmp edi, ecx
jle 0x40f250
lea esi, [esp + ebp*4 + 0x2c]
mov eax, edi
cdq
idiv ecx
test edx, edx
jne 0x40f24b
add ebx, ecx
mov dword [esi], ecx
inc ebp
add esi, 4
inc ecx
cmp ecx, edi
jl 0x40f23a
xor ebp, ebp
inc edi
cmp edi, 0x3e8
jle 0x40f22b
xor eax, eax
mov esi, 1
mov dword [esp + 0x24], eax
lea edi, [esp + 0x24]
pop ebp
test eax, eax
je 0x40f284
lea ecx, [esp + 0xc]
dec ecx
mov dl, byte [ecx + esi]
mov bl, byte [ecx + eax]
cmp dl, bl
je 0x40f284
mov eax, dword [esp + eax*4 + 0x1c]
jmp 0x40f2a2
inc esi
add edi, 4
lea ecx, [esp + 0xc]
inc eax
dec ecx
mov dl, byte [ecx + esi]
mov bl, byte [ecx + eax]
cmp dl, bl
je 0x40f29c
mov dword [edi], eax
jmp 0x40f2a2
mov ecx, dword [esp + eax*4 + 0x1c]
mov dword [edi], ecx
cmp esi, 0xa
jl 0x40f26b
mov esi, dword [esp + 0xc]
pop edi
pop ebx
lea ecx, [esp + 4]
call fcn.0040cb40
push 0x900000
push 0x400000
lea ecx, [esp + 0xc]
mov dword [esp + 0x80], 0
call fcn.0040cd40
mov edx, dword [esi + 0x19118]
mov ecx, dword [esi + 0x10c]
push eax
lea eax, [esi + 0x118]
push edx
mov edx, dword [esi + 0x108]
push eax
push ecx
lea eax, [esi + 4]
push edx
push eax
mov ecx, esi
call fcn.0040f7a0
lea ecx, [esp + 4]
mov dword [esp + 0x78], 0xffffffff
call fcn.0040cc00
mov ecx, dword [esp + 0x70]
pop esi
mov dword fs:[0], ecx
add esp, 0x78
ret