Function at 0x403170
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f837
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x450398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov dword [ebp - 0x47c], ebx
mov dword [ebp - 0x470], eax
mov word [ebp - 0x218], cx
call fcn.00429770
add esp, 0xc
push ebx
lea eax, [ebp - 0x218]
push str._s.
push eax
mov edi, 1
call fcn.004270ad
add esp, 0xc
lea ecx, [ebp - 0x468]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x478], ebx
cmp ebx, 0xffffffff
je 0x4034a6
lea esp, [esp]
cmp edi, 0x12
je 0x40349f
test edi, edi
je 0x40349f
mov ecx, 0x446298
lea eax, [ebp - 0x43c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403256
test dx, dx
je 0x403252
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403256
add eax, 4
add ecx, 4
test dx, dx
jne 0x403230
xor eax, eax
jmp 0x40325b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40348a
mov ecx, 0x44629c
lea eax, [ebp - 0x43c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403296
test dx, dx
je 0x403292
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403296
add eax, 4
add ecx, 4
test dx, dx
jne 0x403270
xor eax, eax
jmp 0x40329b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40348a
test byte [ebp - 0x468], 0x10
je 0x403475
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x46c], eax
lea eax, [ebp - 0x43c]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x4032fa
mov ecx, eax
movzx edi, cx
call fcn.004196c0
test eax, eax
je 0x403327
push eax
mov eax, edi
lea edi, [ebp - 0x46c]
call fcn.00417fa0
jmp 0x403327
lea eax, [ebp - 0x43c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403303
sub eax, edx
lea edx, [ebp - 0x43c]
sar eax, 1
push edx
lea ecx, [ebp - 0x46c]
push ecx
mov ebx, eax
call fcn.00416d10
mov ecx, dword [ebp - 0x47c]
lea edx, [ebp - 0x474]
push edx
mov dword [ebp - 4], 1
call fcn.00413b80
lea eax, [ebp - 0x474]
push eax
lea ecx, [ebp - 0x484]
push ecx
mov ebx, 0x4462a4
mov byte [ebp - 4], 2
call fcn.004141a0
lea edx, [ebp - 0x46c]
push edx
lea ecx, [ebp - 0x480]
push ecx
mov ebx, eax
mov byte [ebp - 4], 3
call fcn.004140f0
add esp, 0x10
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x484]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40339e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp - 0x470]
lea ecx, [ebp - 0x46c]
test ebx, ebx
jne 0x4033b7
lea ecx, [ebp - 0x480]
call fcn.00414ab0
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4033fa
mov edx, dword [ebp - 0x47c]
lea ecx, [ebp - 0x43c]
push ecx
push edx
lea eax, [ebp - 0x218]
push 0x4462a8
push eax
call fcn.004270ad
mov ecx, dword [ebp - 0x470]
push ebx
push ecx
lea edx, [ebp - 0x218]
push edi
push edx
call fcn.00403170
add esp, 0x20
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x480]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403420
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x474]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403446
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x46c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40346f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x478]
lea ecx, [ebp - 0x468]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
jmp 0x403210
lea edx, [ebp - 0x468]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
jmp 0x403210
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004267a3
mov esp, ebp
pop ebp
ret