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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040255
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x10058684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
push 0x250
lea ecx, [ebp - 0x260]
push 0
push ecx
mov dword [ebp - 0x270], eax
call fcn.10024270
add esp, 0xc
lea edx, [ebp - 0x260]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x288], eax
cmp eax, 0xffffffff
je 0x100384b0
push eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
push eax
lea ecx, [ebp - 0x2a8]
push ecx
call fcn.10037a70
add esp, 0xc
push esi
lea ecx, [ebp - 0x268]
mov dword [ebp - 4], 0
call fcn.100021a3
mov edx, dword [ebp - 0x268]
push 0x5c
push edx
mov byte [ebp - 4], 1
call fcn.1001ef2c
add esp, 8
test eax, eax
je 0x10037ffb
sub eax, dword [ebp - 0x268]
sar eax, 1
cmp eax, 0xffffffff
je 0x10037ffb
inc eax
push eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x268]
call fcn.10002289
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 2
call fcn.100023d5
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10038006
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x10038006
lea ecx, [ebp - 0x268]
call fcn.100022d0
push ebx
lea ecx, [ebp - 0x26c]
call fcn.100021a3
mov edi, dword [ebp + 0x14]
lea esi, [ebp - 0x234]
shr esi, 0x10
mov byte [ebp - 4], 3
mov dword [ebp - 0x290], esi
jmp 0x10038030
mov edx, dword [0x100581b4]
mov eax, dword [edx + 0xc]
mov ecx, 0x100581b4
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x264], ebx
mov byte [ebp - 4], 4
test esi, esi
jne 0x10038078
lea ecx, [ebp - 0x234]
movzx esi, cx
push 0
push esi
call fcn.10002adc
add esp, 8
test eax, eax
je 0x100380a9
push esi
push eax
lea ecx, [ebp - 0x264]
call fcn.1000273e
jmp 0x100380a3
lea eax, [ebp - 0x234]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10038081
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x234]
push edx
lea ecx, [ebp - 0x264]
call fcn.10002599
mov ebx, dword [ebp - 0x264]
mov byte [ebp - 4], 5
mov ecx, 0x10046580
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100380da
test dx, dx
je 0x100380d6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100380da
add eax, 4
add ecx, 4
test dx, dx
jne 0x100380b4
xor eax, eax
jmp 0x100380df
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x100383e8
mov ecx, 0x10046584
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10038119
test dx, dx
je 0x10038115
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10038119
add eax, 4
add ecx, 4
test dx, dx
jne 0x100380f3
xor eax, eax
jmp 0x1003811e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x100383e8
test byte [ebp - 0x260], 0x10
je 0x10038323
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x268]
push ecx
lea edx, [ebp - 0x27c]
push edx
call fcn.10004316
mov esi, eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x298]
push edx
mov byte [ebp - 4], 6
call fcn.10004316
push 0x1004658c
push eax
lea eax, [ebp - 0x284]
push eax
mov byte [ebp - 4], 7
call fcn.1000436d
mov esi, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x270]
push edi
push esi
push eax
push ecx
mov byte [ebp - 4], 8
call fcn.10037ad0
add esp, 0x34
test eax, eax
mov eax, dword [ebp - 0x284]
sete bl
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100381cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x298]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100381f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x27c]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10038219
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x1003842f
lea ecx, [ebp - 0x264]
push ecx
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x28c]
push eax
call fcn.10004316
push 0x10046590
push eax
lea ecx, [ebp - 0x294]
push ecx
mov byte [ebp - 4], 9
call fcn.1000436d
mov esi, eax
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x274]
push ecx
mov byte [ebp - 4], 0xa
call fcn.10004316
push 0x10046598
push eax
lea edx, [ebp - 0x29c]
push edx
mov byte [ebp - 4], 0xb
call fcn.1000436d
mov esi, dword [esi]
mov eax, dword [eax]
push edi
push esi
push eax
mov eax, dword [ebp - 0x270]
push eax
mov byte [ebp - 4], 0xc
call fcn.10037ef0
add esp, 0x40
test eax, eax
mov eax, dword [ebp - 0x29c]
sete bl
add eax, 0xfffffff0
mov byte [ebp - 4], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100382cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100382f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x294]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10038318
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28c]
jmp 0x100383a8
lea ecx, [ebp - 0x264]
push ecx
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x280]
push eax
call fcn.10004316
mov esi, eax
lea ecx, [ebp - 0x264]
push ecx
lea edx, [ebp - 0x26c]
push edx
lea eax, [ebp - 0x278]
push eax
mov byte [ebp - 4], 0xd
call fcn.10004316
mov esi, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x270]
push edi
push esi
push eax
push ecx
mov byte [ebp - 4], 0xe
call fcn.10037ad0
add esp, 0x28
test eax, eax
mov eax, dword [ebp - 0x278]
sete bl
add eax, 0xfffffff0
mov byte [ebp - 4], 0xd
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100383a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x280]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 5
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100383c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
test bl, bl
je 0x100383eb
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x10038449
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10038408
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x288]
lea ecx, [ebp - 0x260]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x100384b4
mov esi, dword [ebp - 0x290]
jmp 0x10038030
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10038455
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003847b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100384a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x2a8]
push ecx
call fcn.100378d0
add esp, 4
xor eax, eax
jmp 0x10038514
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100384da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10038500
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x2a8]
push ecx
call fcn.100378d0
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001d73b
mov esp, ebp
pop ebp
ret