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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x74]
mov dword [esp], 0x41c280
call fcn.00406300
test eax, eax
jne 0x40f502
xor eax, eax
mov ecx, 0xffffffff
mov edi, dword [esp + 0x70]
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x78]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov dword [esp], 0x427248
call fcn.0040fc50
mov esi, eax
mov dword [esp], 0x41c280
call fcn.00406578
test eax, eax
jne 0x40f502
test esi, esi
je 0x40f388
mov eax, dword [esi + 4]
test eax, eax
jle 0x40f374
mov eax, dword [esi + 8]
test eax, eax
je 0x40f338
mov eax, esi
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esi + 0x10]
test edx, edx
je 0x40f32e
mov ebx, esi
jmp 0x40f358
mov eax, dword [ebx + 0x10]
mov ebp, dword [eax + 8]
test ebp, ebp
jne 0x40f32e
add ebx, 4
mov edx, dword [ebx + 0x10]
test edx, edx
je 0x40f32e
mov eax, dword [edx + 4]
test eax, eax
jg 0x40f344
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00403944
jmp 0x40f344
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00403944
jmp 0x40f327
mov dword [esp], ebx
call fcn.0040fb24
mov ebp, eax
test eax, eax
je 0x40f3a8
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov ebx, eax
test eax, eax
je 0x40f4fb
lea eax, [esp + 0x4c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x44]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004103b4
mov esi, eax
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
je 0x40f4fb
mov dword [esp], 0x41c280
call fcn.00406440
test eax, eax
jne 0x40f502
mov ecx, 0xffffffff
mov edi, dword [esp + 0x70]
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x28], 1
mov eax, dword [esp + 0x78]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov dword [esp], 0x427248
call fcn.0040fc50
mov esi, eax
mov dword [esp], 0x41c280
call fcn.00406578
test eax, eax
jne 0x40f502
test esi, esi
je 0x40f490
mov edi, dword [esi + 4]
test edi, edi
jle 0x40f4e9
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40f4ae
test ebp, ebp
je 0x40f490
mov dword [esp], ebx
call fcn.0041ab20
test byte [esp + 0x2c], 1
je 0x40f32e
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.0041ab20
mov eax, esi
jmp 0x40f330
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40f484
mov edi, esi
jmp 0x40f4d0
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 8]
test eax, eax
jne 0x40f484
add edi, 4
mov eax, dword [edi + 0x10]
test eax, eax
je 0x40f484
mov edx, dword [eax + 4]
test edx, edx
jg 0x40f4bc
mov ecx, dword [esp + 0x7c]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00403944
jmp 0x40f4bc
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00403944
jmp 0x40f47d
xor eax, eax
jmp 0x40f330
call sub.msvcrt.dll_abort
nop