Function at 0x403124
Capabilities:
Enumerate files on windows

Disassembly:
push 0x28c
mov eax, 0x430244
call fcn.0041be96
mov dword [ebp - 0x26c], edx
mov esi, ecx
mov dword [ebp - 0x274], esi
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x264], ebx
lea eax, [ebp + 0x10]
mov dword [ebp - 4], 1
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x268]
call fcn.0041280d
pop ecx
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40320e
call fcn.004128b0
cmp eax, 0x80070002
jne 0x4031d1
and dword [esi], ebx
and dword [esi + 4], ebx
call fcn.00412f7e
push eax
lea ecx, [esi + 8]
call fcn.0040f3c2
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.004130bf
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004130bf
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
jmp 0x4033fc
push 0x389
push eax
push ecx
mov ecx, esp
push str.Could_not_open_directory
call fcn.00412bfc
lea ecx, [ebp - 0x290]
call fcn.004130db
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00402691
mov ecx, dword [ebp - 0x288]
lea ecx, [ecx - 0x10]
call fcn.004130bf
jmp 0x4033dd
mov esi, dword [ebp - 0x26c]
test byte [ebp - 0x260], 0x10
je 0x4032f7
lea eax, [ebp - 0x234]
push eax
push 0x4399c8
call fcn.00418a8b
pop ecx
pop ecx
test eax, eax
je 0x4033a5
lea eax, [ebp - 0x234]
push eax
push 0x4399d0
call fcn.00418a8b
pop ecx
pop ecx
test eax, eax
je 0x4033a5
test esi, esi
je 0x4033a5
cmp byte [ebp + 0x14], 0
lea eax, [ebp - 0x234]
je 0x403289
push ecx
mov ecx, esp
push eax
call fcn.00412bfc
lea ecx, [ebp - 0x280]
call fcn.004022e6
pop ecx
mov byte [ebp - 4], 4
or ebx, 2
jmp 0x40329f
push eax
lea ecx, [ebp - 0x26c]
call fcn.00412bfc
mov dword [ebp - 4], 5
or ebx, 4
movzx ecx, byte [0x447027]
push ecx
push eax
push ecx
lea eax, [ebp - 0x298]
mov dword [ebp - 0x264], ebx
push eax
mov ecx, esi
call fcn.0041006c
test bl, 4
je 0x4032d9
mov ecx, dword [ebp - 0x26c]
and ebx, 0xfffffffb
add ecx, 0xfffffff0
mov dword [ebp - 0x264], ebx
call fcn.004130bf
mov dword [ebp - 4], 2
test bl, 2
je 0x4033a5
mov ecx, dword [ebp - 0x280]
and ebx, 0xfffffffd
jmp 0x403397
cmp dword [ebp - 0x270], 0
je 0x4033a5
cmp byte [ebp + 0x14], 0
lea eax, [ebp - 0x234]
je 0x40332e
push ecx
mov ecx, esp
push eax
call fcn.00412bfc
lea ecx, [ebp - 0x284]
call fcn.004022e6
pop ecx
mov byte [ebp - 4], 6
or ebx, 8
jmp 0x403344
push eax
lea ecx, [ebp - 0x278]
call fcn.00412bfc
mov dword [ebp - 4], 7
or ebx, 0x10
movzx ecx, byte [0x447027]
push ecx
push eax
push ecx
mov ecx, dword [ebp - 0x270]
lea eax, [ebp - 0x28c]
push eax
mov dword [ebp - 0x264], ebx
call fcn.0041006c
test bl, 0x10
je 0x403382
mov ecx, dword [ebp - 0x278]
and ebx, 0xffffffef
add ecx, 0xfffffff0
mov dword [ebp - 0x264], ebx
call fcn.004130bf
mov dword [ebp - 4], 2
test bl, 8
je 0x4033a5
mov ecx, dword [ebp - 0x284]
and ebx, 0xfffffff7
add ecx, 0xfffffff0
mov dword [ebp - 0x264], ebx
call fcn.004130bf
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403214
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x274]
and dword [esi], 0
and dword [esi + 4], 0
call fcn.00412f7e
push eax
lea ecx, [esi + 8]
call fcn.0040f3c2
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.004130bf
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004130bf
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.004130bf
mov eax, esi
call fcn.0041be45
ret