Function at 0x4035a3
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2847c
call fcn.00422eb0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x28478], eax
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
push 0x7ffe
mov word [esp + 0x484], ax
lea eax, [esp + 0x486]
push esi
push eax
call fcn.00412740
add esp, 0xc
mov ecx, 0x42a2c4
call fcn.0040ca67
lea edx, [esp + 0x480]
mov ecx, eax
call fcn.0040f3d7
cmp word [esp + 0x480], si
je 0x403964
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
lea eax, [esp + 0x480]
push eax
push 0x416
push dword [0x49fefc]
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
push esi
push 0x1009
push 0x418
push dword [0x49fefc]
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, 0x42a2cc
call fcn.0040ca67
mov edi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov ebx, 0x45fc38
push eax
push ebx
call edi
push 1
mov ecx, ebx
call fcn.0040cb6e
pop ecx
xor ebx, ebx
mov ecx, 0x42a2d4
push ebx
call fcn.0040ca67
mov ecx, eax
call fcn.0040cb6e
pop ecx
xor ecx, ecx
call fcn.004034de
xor eax, eax
mov esi, 0xfffc
push esi
mov word [esp + 0x18484], ax
lea eax, [esp + 0x18486]
push ebx
push eax
call fcn.00412740
add esp, 0xc
xor eax, eax
mov word [esp + 0x8480], ax
lea eax, [esp + 0x8482]
push esi
push ebx
push eax
call fcn.00412740
add esp, 0xc
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
push ebx
inc eax
mov dword [esp + 0x1c], 1
push ebx
mov dword [esp + 0x24], eax
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
push 0xc350000
push 8
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x403713
or eax, 0xffffffff
jmp 0x403967
lea eax, [esp + 0x480]
push eax
push ebx
call edi
mov eax, dword [esp + 0x10]
inc esi
mov dword [esp + 0x20], esi
lea esi, [ebx + eax*2]
push esi
lea eax, [esp + 0x18484]
push eax
call edi
push esi
lea eax, [esp + 0x8484]
push eax
call edi
lea eax, [esp + 0x8480]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
inc ecx
add ecx, eax
lea eax, [esp + 0x8480]
push 0x42a2dc
push eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [esp + 0x28]
xor esi, esi
push eax
lea eax, [esp + 0x8484]
inc esi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40389a
test esi, esi
je 0x40389a
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
lea eax, [esp + 0x54]
push 0x42a2e4
push eax
call esi
test eax, eax
je 0x403887
push 0x42a2e8
lea eax, [esp + 0x58]
push eax
call esi
test eax, eax
je 0x403887
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x18484]
push eax
push str._s_s
lea eax, [esp + 0x848c]
push 0x4000
push eax
call fcn.00402dab
add esp, 0x14
cmp eax, 0xffffffff
je 0x403851
test byte [esp + 0x28], 0x10
jne 0x403858
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x1004
push 0x418
push dword [0x49fefc]
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [0x46fc40], 0
push 0x46fc38
push 0
push 0x104d
push 0x418
push dword [0x49fefc]
mov dword [0x46fc3c], eax
lea eax, [esp + 0x8494]
mov dword [0x46fc4c], eax
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [esp + 0x28], 0x10
je 0x403887
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x8480]
inc dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
lea eax, [eax + esi*2]
push eax
call edi
lea eax, [esp + 0x8480]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc esi
add esi, eax
mov dword [esp + 0x18], esi
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x40378d
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
cmp esi, dword [esp + 0x14]
jne 0x40371e
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
xor ecx, ecx
inc ecx
call fcn.004034de
xor ebx, ebx
mov ecx, 0x42a0d8
push ebx
call fcn.0040ca67
mov ecx, eax
call fcn.0040cb6e
xor eax, eax
mov dword [esp], 0x206
mov word [esp + 0x27c], ax
lea eax, [esp + 0x27e]
push ebx
push eax
call fcn.00412740
add esp, 0xc
lea eax, [esp + 0x480]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [esp + 0x27c]
push eax
call edi
lea eax, [esp + 0x278]
push eax
push ebx
push ebx
push 0x1004
push 0x418
push dword [0x49fefc]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov ecx, 0x42a2fc
call fcn.0040ca67
push eax
push 0x4000
mov esi, 0x45fc38
push esi
call fcn.00402dab
add esp, 0x14
mov ecx, esi
push 1
call fcn.0040cb6e
pop ecx
xor eax, eax
inc eax
mov ecx, dword [esp + 0x28484]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00411b03
mov esp, ebp
pop ebp
ret