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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a80d8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x24], esi
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], ecx
test ebx, ebx
je 0x40f054
mov dword [ebx], 0
xor ecx, ecx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], cx
mov dword [esp + 0x80], ecx
xor edx, edx
lea ecx, [esp + 0x58]
push ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], dx
call fcn.0040b790
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x40f0b9
test ebx, ebx
je 0x40f0b1
mov dword [ebx], 0xb
or esi, 0xffffffff
jmp 0x40f332
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esp + 0x78]
push eax
call fcn.0040b790
lea ecx, [esp + 0x40]
call fcn.0049fed0
add esp, 0x18
mov byte [esp + 0x80], 1
lea edi, [esp + 0x28]
cmp dword [esp + 0x3c], 0x10
mov esi, 1
mov eax, dword [0x4e5710]
cmovae edi, dword [esp + 0x28]
test eax, eax
jne 0x40f138
call fcn.0043ee60
test al, al
je 0x40f12f
push str.AFCDirectoryOpen
push dword [0x4e57b0]
call dword [0x4b9124]
mov dword [0x4e5710], eax
jmp 0x40f134
mov eax, dword [0x4e5710]
test eax, eax
je 0x40f149
lea ecx, [esp + 0x1c]
push ecx
push edi
push dword [esp + 0x20]
call eax
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x40f2c5
mov eax, dword [0x4e5708]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
mov esi, 1
test eax, eax
jne 0x40f191
call fcn.0043ee60
test al, al
je 0x40f188
push str.AFCDirectoryRead
push dword [0x4e57b0]
call dword [0x4b9124]
mov dword [0x4e5708], eax
jmp 0x40f18d
mov eax, dword [0x4e5708]
test eax, eax
je 0x40f1a5
lea ecx, [esp + 0x14]
push ecx
push edi
mov edi, dword [esp + 0x20]
push edi
call eax
add esp, 0xc
mov esi, eax
jmp 0x40f1a9
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40f2ba
test esi, esi
jne 0x40f2ba
push 0xffffffffffffffff
mov edx, eax
lea ecx, [esp + 0x44]
call fcn.004a0000
add esp, 4
push 1
push 0x4bd048
mov byte [esp + 0x88], 2
push dword [esp + 0x58]
push ecx
lea ecx, [esp + 0x50]
call fcn.00408690
test eax, eax
je 0x40f23e
push 2
push 0x4bd124
push dword [esp + 0x58]
push ecx
lea ecx, [esp + 0x50]
call fcn.00408690
test eax, eax
je 0x40f23e
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x40]
push eax
mov esi, dword [edi]
push dword [esi + 4]
push esi
call fcn.00411bd0
mov edx, dword [edi + 4]
mov ecx, eax
mov eax, 0x7fffffe
sub eax, edx
cmp eax, 1
jb 0x40f368
lea eax, [edx + 1]
mov dword [edi + 4], eax
mov dword [esi + 4], ecx
mov eax, dword [ecx + 4]
mov dword [eax], ecx
mov eax, dword [0x4e5708]
mov esi, 1
mov edi, dword [esp + 0x1c]
test eax, eax
jne 0x40f27a
call fcn.0043ee60
test al, al
je 0x40f271
push str.AFCDirectoryRead
push dword [0x4e57b0]
call dword [0x4b9124]
mov dword [0x4e5708], eax
jmp 0x40f276
mov eax, dword [0x4e5708]
test eax, eax
je 0x40f28e
lea ecx, [esp + 0x14]
push ecx
push edi
mov edi, dword [esp + 0x20]
push edi
call eax
add esp, 0xc
mov esi, eax
jmp 0x40f292
mov edi, dword [esp + 0x18]
mov byte [esp + 0x80], 1
cmp dword [esp + 0x54], 8
jb 0x40f2ae
push dword [esp + 0x40]
call dword [0x4b93e4]
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40f1b5
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.0043f590
test ebx, ebx
je 0x40f2cb
mov dword [ebx], esi
cmp esi, 1
je 0x40f2d5
cmp esi, 0xb
jne 0x40f302
mov edi, dword [esp + 0x24]
lea esi, [edi + 0x34]
push esi
call dword [0x4b90bc]
mov ecx, dword [edi + 0x2c]
test ecx, ecx
je 0x40f2ef
call fcn.00479b10
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x40f2fb
call fcn.00479b10
push esi
call dword [0x4b90c0]
cmp dword [esp + 0x3c], 0x10
mov esi, dword [esp + 0x20]
mov esi, dword [esi + 4]
jb 0x40f31d
push dword [esp + 0x28]
call dword [0x4b93e4]
add esp, 4
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
cmp dword [esp + 0x6c], 8
jb 0x40f346
push dword [esp + 0x58]
call dword [0x4b93e4]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004a6303
mov esp, ebp
pop ebp
ret 0xc
push str.list_T__too_long
call dword [0x4b9270]
int3