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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105af76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x528
mov eax, dword [0x106406c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x268], 0
lea ecx, [ebp - 0x278]
call fcn.01010c62
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.01010c62
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.01010c62
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x26c]
call fcn.01010c62
mov byte [ebp - 4], 3
mov dword [ebp - 0x4d0], 1
cmp dword [ebp + 8], 0
jne 0x104d4ff
mov dword [ebp - 0x4d4], 0x57
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x26c]
call fcn.01010c92
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.01010c92
mov eax, dword [ebp - 0x4d4]
jmp 0x104d97f
cmp dword [0x1065c98], 0
jne 0x104d56f
call fcn.0104daa0
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0
je 0x104d56f
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x4d8], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x26c]
call fcn.01010c92
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.01010c92
mov eax, dword [ebp - 0x4d8]
jmp 0x104d97f
push 0x1065a90
lea ecx, [ebp - 0x278]
call fcn.01011a82
push 0x1005828
lea ecx, [ebp - 0x278]
push ecx
lea edx, [ebp - 0x4dc]
push edx
call fcn.010116f7
mov dword [ebp - 0x500], eax
mov eax, dword [ebp - 0x500]
mov dword [ebp - 0x504], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x504]
push ecx
lea ecx, [ebp - 0x274]
call fcn.010115e7
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4dc]
call fcn.01010c92
lea edx, [ebp - 0x264]
push edx
lea ecx, [ebp - 0x274]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 0xffffffff
jne 0x104d668
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 2
jne 0x104d615
mov dword [ebp - 0x268], 0
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x4e0], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x26c]
call fcn.01010c92
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.01010c92
mov eax, dword [ebp - 0x4e0]
jmp 0x104d97f
mov ecx, dword [ebp - 0x264]
and ecx, 0x10
je 0x104d8ff
push 0x1005820
lea edx, [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x104d8ff
push 0x1005818
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x104d8ff
push 0x1005824
lea ecx, [ebp - 0x278]
push ecx
lea edx, [ebp - 0x4e4]
push edx
call fcn.010116f7
mov dword [ebp - 0x508], eax
mov eax, dword [ebp - 0x508]
mov dword [ebp - 0x50c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x50c]
push edx
lea eax, [ebp - 0x4e8]
push eax
call fcn.010116f7
mov dword [ebp - 0x510], eax
mov ecx, dword [ebp - 0x510]
mov dword [ebp - 0x514], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x514]
push edx
lea ecx, [ebp - 0x10]
call fcn.010115e7
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4e8]
call fcn.01010c92
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4e4]
call fcn.01010c92
push 0x1005824
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x4ec]
push ecx
call fcn.010116f7
mov dword [ebp - 0x518], eax
mov edx, dword [ebp - 0x518]
mov dword [ebp - 0x51c], edx
mov byte [ebp - 4], 7
push 0x100f170
mov eax, dword [ebp - 0x51c]
push eax
lea ecx, [ebp - 0x4f0]
push ecx
call fcn.010116f7
mov dword [ebp - 0x520], eax
mov edx, dword [ebp - 0x520]
mov dword [ebp - 0x524], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x524]
push eax
lea ecx, [ebp - 0x274]
call fcn.010115e7
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4f0]
call fcn.01010c92
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4ec]
call fcn.01010c92
lea ecx, [ebp - 0x4cc]
push ecx
lea ecx, [ebp - 0x274]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0xffffffff
jne 0x104d81a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 2
jne 0x104d80b
mov dword [ebp - 0x268], 0
jmp 0x104d8ff
mov dword [ebp - 0x4d0], 0
jmp 0x104d924
mov edx, dword [ebp - 0x4cc]
and edx, 0x10
jne 0x104d8cd
push 0x1005824
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x4f4]
push ecx
call fcn.010116f7
mov dword [ebp - 0x528], eax
mov edx, dword [ebp - 0x528]
mov dword [ebp - 0x52c], edx
mov byte [ebp - 4], 9
lea eax, [ebp - 0x4a0]
push eax
mov ecx, dword [ebp - 0x52c]
push ecx
lea edx, [ebp - 0x4f8]
push edx
call fcn.010116f7
mov dword [ebp - 0x530], eax
mov eax, dword [ebp - 0x530]
mov dword [ebp - 0x534], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x534]
push ecx
lea ecx, [ebp - 0x26c]
call fcn.010115e7
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x4f8]
call fcn.01010c92
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4f4]
call fcn.01010c92
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x26c]
call fcn.010107dc
push eax
call dword [ebp + 8]
mov dword [ebp - 0x4d0], eax
lea eax, [ebp - 0x4cc]
push eax
mov ecx, dword [ebp - 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x104d8f2
cmp dword [ebp - 0x4d0], 0
jne 0x104d81a
mov edx, dword [ebp - 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x264]
push eax
mov ecx, dword [ebp - 0x27c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x104d924
cmp dword [ebp - 0x4d0], 0
jne 0x104d668
mov edx, dword [ebp - 0x27c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x4fc], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x26c]
call fcn.01010c92
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.01010c92
mov eax, dword [ebp - 0x4fc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0101cfec
mov esp, ebp
pop ebp
ret 8