Function at 0x1042c59
Capabilities:
Check if file exists
Create directory
Enumerate files on windows
Get file attributes

Disassembly:
push 0x4d4
mov eax, 0x10600f3
call fcn.0104f396
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x4dc], eax
mov eax, dword [ebp + 0x10]
mov esi, 0x1068adc
xor ebx, ebx
push esi
lea ecx, [ebp - 0x4cc]
mov dword [ebp - 0x4d8], eax
mov dword [ebp - 0x4b8], ebx
call fcn.010309e3
push esi
lea ecx, [ebp - 0x4d0]
mov dword [ebp - 4], ebx
call fcn.010309e3
push esi
lea ecx, [ebp - 0x4c0]
mov byte [ebp - 4], 1
call fcn.010309e3
push esi
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 2
call fcn.010309e3
push esi
lea ecx, [ebp - 0x4d4]
mov byte [ebp - 4], 3
call fcn.010309e3
push dword [edi]
or dword [ebp - 0x4c4], 0xffffffff
or dword [ebp - 0x4bc], 0xffffffff
lea eax, [ebp - 0x4cc]
push 0x1010614
push eax
mov byte [ebp - 4], 5
call fcn.0103152e
add esp, 0xc
mov esi, 0x250
push esi
lea eax, [ebp - 0x264]
push ebx
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x4b4]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x4cc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x4c4], eax
cmp eax, 0xffffffff
je 0x1042e9d
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 1
lea eax, [ebp - 0x238]
push 0x1003e54
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x1042f98
push 2
lea eax, [ebp - 0x238]
push 0x101060c
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x1042f98
test byte [ebp - 0x264], 0x10
je 0x1042f98
mov eax, dword [ebp - 0x4dc]
mov eax, dword [eax]
mov ecx, dword [edi]
push eax
lea eax, [ebp - 0x238]
push eax
push ecx
lea eax, [ebp - 0x4d0]
push 0x1010708
push eax
call fcn.0103152e
add esp, 0x14
lea eax, [ebp - 0x4b4]
push eax
push dword [ebp - 0x4d0]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x4bc], eax
cmp eax, 0xffffffff
je 0x1042f98
test byte [ebp - 0x4b4], 0x10
jne 0x1042f5c
mov eax, dword [ebp - 0x4d8]
mov eax, dword [eax]
lea ecx, [ebp - 0x238]
push ecx
push eax
lea eax, [ebp - 0x4c0]
push 0x1003e48
push eax
call fcn.0103152e
mov eax, dword [edi]
add esp, 0x10
lea ecx, [ebp - 0x488]
push ecx
lea ecx, [ebp - 0x238]
push ecx
push eax
lea eax, [ebp - 0x4c8]
push 0x10105f8
push eax
call fcn.0103152e
add esp, 0x14
push dword [ebp - 0x4c0]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1042f1b
push 0
push dword [ebp - 0x4c0]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1042f1b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x1042e74
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x4b8], eax
test eax, eax
jl 0x1042e88
mov dword [ebp - 0x4b8], 0x80004005
push 0x1010698
push 0x1010684
call esi
push eax
call fcn.0104a5f6
add esp, 0xc
cmp dword [ebp - 0x4c4], 0xffffffff
je 0x1042eb2
push dword [ebp - 0x4c4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x4bc], 0xffffffff
je 0x1042ec7
push dword [ebp - 0x4bc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x4d4]
add ecx, 0xfffffff0
call fcn.010303ce
mov ecx, dword [ebp - 0x4c8]
add ecx, 0xfffffff0
call fcn.010303ce
mov ecx, dword [ebp - 0x4c0]
add ecx, 0xfffffff0
call fcn.010303ce
mov ecx, dword [ebp - 0x4d0]
add ecx, 0xfffffff0
call fcn.010303ce
mov ecx, dword [ebp - 0x4cc]
add ecx, 0xfffffff0
call fcn.010303ce
mov eax, dword [ebp - 0x4b8]
call fcn.0104f401
ret 0xc
lea eax, [ebp - 0x4c0]
push eax
lea eax, [ebp - 0x4c8]
push eax
call fcn.010414a3
mov dword [ebp - 0x4b8], eax
test eax, eax
jge 0x1042f5c
push dword [ebp - 0x4d4]
push dword [ebp - 0x4c8]
push 0x1010648
push 0x1010634
push eax
call fcn.0104a504
add esp, 0x14
jmp 0x1042e9d
push esi
lea eax, [ebp - 0x4b4]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4b4]
push eax
push dword [ebp - 0x4bc]
call ebx
test eax, eax
jne 0x1042ddd
push dword [ebp - 0x4bc]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x4bc], 0xffffffff
push esi
lea eax, [ebp - 0x264]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x4c4]
call ebx
test eax, eax
jne 0x1042d49
jmp 0x1042e9d