Function at 0x401430
Capabilities:
Accept command line arguments
Check if file exists
Enumerate files on windows

Disassembly:
sub esp, 0x6c0
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push esi
push edi
xor eax, eax
push eax
push eax
mov ecx, 0xa
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x6dc]
push 0x1004
mov ebp, 1
push edi
mov dword [esp + 0x28], ebp
call ebx
mov ecx, dword [esp + 0x6d8]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x28], 3
mov dword [esp + 0x44], 0xffffffff
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, dword [esp + 0x6dc]
test esi, esi
mov edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
je 0x4014ac
cmp eax, ebp
jg 0x4014b4
jmp 0x4016c1
test eax, eax
jle 0x4016c1
xor ecx, ecx
test esi, esi
setne cl
cmp ecx, eax
mov dword [esp + 0x14], ecx
jge 0x4016c1
lea esi, [edx + ecx*4]
lea ebx, [ebx]
mov edx, dword [esi]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edx
call ebp
test eax, eax
je 0x401570
mov ecx, dword [esi]
push 0
lea eax, [esp + 0x27c]
push eax
push 0x104
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push 0x104
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x40152e
lea ecx, [esp + 0x278]
push ecx
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x70]
push eax
call ebp
test eax, eax
je 0x40169a
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x40169a
lea eax, [esp + 0x20]
push eax
push 0
push 0x104d
lea edx, [esp + 0x7c]
push edi
mov dword [esp + 0x44], edx
call ebx
inc dword [esp + 0x24]
jmp 0x40169a
mov edx, dword [esi]
lea ecx, [esp + 0x480]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401692
mov eax, dword [esi]
push 0x4011b4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4011b0
lea ecx, [esp + 0x4b0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x401672
push 0x4011a8
lea edx, [esp + 0x4b0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x401672
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
push 0
lea ecx, [esp + 0x27c]
push ecx
push 0x104
lea edx, [esp + 0x4b8]
push 0
push edx
je 0x401602
mov eax, dword [esi]
push eax
jmp 0x401604
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push 0x104
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x280]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x401639
lea edx, [esp + 0x278]
push edx
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401672
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x401672
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x104d
lea eax, [esp + 0x7c]
push edi
mov dword [esp + 0x44], eax
call ebx
inc dword [esp + 0x24]
lea edx, [esp + 0x480]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4015a1
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40169a
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc eax
add esi, 4
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4014d0
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x6dc]
mov ebp, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
jne 0x4016ff
push esi
push esi
push 0x1004
push edi
call ebx
mov esi, eax
mov eax, 1
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x48]
push eax
dec esi
push esi
push 0x102b
push edi
call ebx
push 0
push esi
push 0x1013
push edi
call ebx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x6c0
ret