Function at 0x103f891
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x48c
mov eax, 0x106b700
call fcn.0101da7e
xor ebx, ebx
mov dword [ebp - 0x484], ecx
mov dword [ebp - 0x474], ebx
mov eax, dword [0x1077004]
mov edi, 0x1077004
mov esi, 0x100
cmp eax, edi
je 0x103f8de
test dword [eax + 0x1c], esi
je 0x103f8de
cmp byte [eax + 0x19], 4
jb 0x103f8de
push 0x100b708
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015bb9
mov ecx, dword [ebp - 0x484]
add ecx, 0x124
call fcn.0102eb65
test eax, eax
jne 0x103f932
mov eax, dword [0x1077004]
cmp eax, edi
je 0x103f926
test dword [eax + 0x1c], esi
je 0x103f926
cmp byte [eax + 0x19], 2
jb 0x103f926
mov esi, 0x3eb
push esi
push 0x100bc88
push 0x100b708
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101ea0b
jmp 0x103f92b
mov esi, 0x3eb
mov eax, esi
jmp 0x103fe67
push 0x105
lea eax, [ebp - 0x220]
push eax
call fcn.01022195
test eax, eax
jne 0x103f981
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1077004]
cmp ecx, edi
je 0x103f97a
test dword [ecx + 0x1c], esi
je 0x103f97a
cmp byte [ecx + 0x19], 2
jb 0x103f97a
push eax
push 0x100ba44
push 0x100b708
push 0x15
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101ea0b
xor eax, eax
jmp 0x103fe67
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x103f98a
sub eax, edx
sar eax, 1
mov dword [ebp - 0x488], eax
lea eax, [ebp - 0x220]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
lea ecx, [ebp - 0x478]
mov dword [ebp - 0x48c], eax
call sub.MFC42u.dll_CString::CString_3
push 0x100bc7c
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x478]
push 0x10056c4
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::Format
add esp, 0x10
lea eax, [ebp - 0x470]
push eax
push dword [ebp - 0x478]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x480], eax
cmp eax, 0xffffffff
jne 0x103fa5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x103fa45
mov dword [ebp - 0x474], eax
mov ecx, dword [0x1077004]
cmp ecx, edi
je 0x103fa45
test dword [ecx + 0x1c], esi
je 0x103fa45
cmp byte [ecx + 0x19], 2
jb 0x103fa45
push eax
push 0x10079b4
push 0x100b708
push 0x17
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101ea0b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call sub.MFC42u.dll_CString::CString
mov eax, dword [ebp - 0x474]
jmp 0x103fe67
xor esi, esi
lea ecx, [ebp - 0x47c]
inc esi
call sub.MFC42u.dll_CString::CString_3
mov byte [ebp - 4], 3
cmp esi, ebx
je 0x103fda8
lea eax, [ebp - 0x444]
push eax
mov eax, 0x104
sub eax, dword [ebp - 0x488]
push eax
push dword [ebp - 0x48c]
call fcn.0101f089
cmp eax, ebx
jge 0x103fafa
mov ecx, eax
and ecx, 0x1fff0000
cmp ecx, 0x70000
jne 0x103faae
movzx eax, ax
mov dword [ebp - 0x474], eax
mov eax, dword [0x1077004]
cmp eax, edi
je 0x103fda8
test dword [eax + 0x1c], 0x100
je 0x103fda8
cmp byte [eax + 0x19], 2
jb 0x103fda8
push dword [ebp - 0x474]
push 0x1009224
push 0x100b708
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101ea0b
jmp 0x103fda8
lea eax, [ebp - 0x220]
push eax
call fcn.01021d22
test eax, eax
je 0x103fce5
mov esi, dword [ebp - 0x484]
add esi, 0x124
mov ecx, esi
call fcn.0102eb0b
push ebx
push 8
push ebx
push ebx
lea ecx, [ebp - 0x444]
push ecx
push eax
push 3
mov ecx, esi
call sub.MFC42u.dll_CListCtrl::InsertItem
mov ebx, eax
test ebx, ebx
jge 0x103fb7e
mov esi, 0x3eb
mov dword [ebp - 0x474], esi
mov eax, dword [0x1077004]
cmp eax, edi
je 0x103fda8
test dword [eax + 0x1c], 0x100
je 0x103fda8
cmp byte [eax + 0x19], 2
jb 0x103fda8
push esi
push 0x100bc50
push 0x100b708
push 0x19
jmp 0x103faea
push 0xffffffffffffffff
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x494]
call fcn.0103ec3d
push 1
lea eax, [ebp - 0x498]
push eax
lea ecx, [ebp - 0x494]
mov byte [ebp - 4], 5
call fcn.010446ab
push eax
lea ecx, [ebp - 0x47c]
mov byte [ebp - 4], 6
call fcn.0101d3fa
lea ecx, [ebp - 0x498]
mov byte [ebp - 4], 5
call sub.MFC42u.dll_CString::CString
push dword [ebp - 0x47c]
mov ecx, esi
push 1
push ebx
mov dword [ebp - 4], 3
mov dword [ebp - 0x494], 0x1006d00
call sub.MFC42u.dll_CListCtrl::SetItemText
test eax, eax
jne 0x103fc2f
mov esi, 0x3eb
mov dword [ebp - 0x474], esi
mov eax, dword [0x1077004]
cmp eax, edi
je 0x103fda8
test dword [eax + 0x1c], 0x100
je 0x103fda8
cmp byte [eax + 0x19], 2
jb 0x103fda8
push esi
push 0x100bc20
push 0x100b708
push 0x1b
jmp 0x103faea
mov ecx, dword [ebp - 0x454]
mov eax, dword [ebp - 0x450]
lea edx, [ebp - 0x47c]
push edx
push ecx
push eax
call fcn.0102ae14
mov dword [ebp - 0x474], eax
test eax, eax
je 0x103fc8e
mov eax, dword [0x1077004]
cmp eax, edi
je 0x103fda8
test dword [eax + 0x1c], 0x100
je 0x103fda8
cmp byte [eax + 0x19], 2
jb 0x103fda8
push dword [ebp - 0x474]
push 0x10096a0
push 0x100b708
push 0x1c
jmp 0x103faea
push dword [ebp - 0x47c]
mov ecx, esi
push 2
push ebx
call sub.MFC42u.dll_CListCtrl::SetItemText
test eax, eax
jne 0x103fce3
mov esi, 0x3eb
mov dword [ebp - 0x474], esi
mov eax, dword [0x1077004]
cmp eax, edi
je 0x103fda8
test dword [eax + 0x1c], 0x100
je 0x103fda8
cmp byte [eax + 0x19], 2
jb 0x103fda8
push esi
push 0x100bc20
push 0x100b708
push 0x1d
jmp 0x103faea
xor ebx, ebx
lea eax, [ebp - 0x470]
push eax
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
cmp esi, ebx
jne 0x103fa79
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x103fda8
mov dword [ebp - 0x474], eax
mov ecx, dword [0x1077004]
cmp ecx, edi
je 0x103fda8
test dword [ecx + 0x1c], 0x100
je 0x103fda8
cmp byte [ecx + 0x19], 2
jb 0x103fda8
push eax
push 0x100bc04
push 0x100b708
push 0x1e
push dword [ecx + 0x14]
push dword [ecx + 0x10]
jmp 0x103faf0
cmp dword [ebp - 0x480], 0xffffffff
je 0x103fdfc
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x103fdfc
mov eax, dword [0x1077004]
cmp eax, edi
je 0x103fdfc
test dword [eax + 0x1c], 0x100
je 0x103fdfc
cmp byte [eax + 0x19], 2
jb 0x103fdfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1077004]
push 0x10079d0
push 0x100b708
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101ea0b
mov ecx, dword [ebp - 0x484]
call fcn.0103f2d3
lea ecx, [ebp - 0x47c]
mov byte [ebp - 4], 0
call sub.MFC42u.dll_CString::CString
jmp 0x103fa45
call fcn.0101dae9
ret