Function at 0x39e9b493
Capabilities:
Enumerate files on windows

Disassembly:
push 0x368
mov eax, 0x39ebd5ab
call fcn.39eaecb8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x2b0], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x2a8], ecx
xor ebx, ebx
push eax
lea ecx, [ebp - 0x374]
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x29c], ebx
call fcn.39eb4742
mov dword [ebp - 4], ebx
push 0x39e0a114
push eax
lea eax, [ebp - 0x358]
push eax
call fcn.39e567c2
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], 8
jb 0x39e9b4fb
mov eax, dword [eax + 4]
jmp 0x39e9b4fe
add eax, 4
lea ecx, [ebp - 0x298]
push ecx
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x2a0], eax
mov byte [ebp - 4], bl
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x358]
call fcn.39eb4742
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0x374]
call fcn.39eb4742
cmp dword [ebp + 0x10], ebx
jle 0x39e9b7c2
cmp dword [ebp - 0x2a0], 0xffffffff
je 0x39e9b7d7
lea eax, [ebp - 0x26c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x39e9b555
sub eax, edx
sar eax, 1
cmp eax, 4
jbe 0x39e9b79c
lea eax, [ebp + eax*2 - 0x274]
push 0x39e0a020
push eax
mov dword [ebp - 0x2a4], eax
call fcn.39eb4742
pop ecx
pop ecx
test eax, eax
jne 0x39e9b6b9
push dword [ebp - 0x2ac]
lea ecx, [ebp - 0x320]
call fcn.39eb4742
mov dword [ebp - 4], 2
push 0x39e172f4
push eax
lea eax, [ebp - 0x2cc]
push eax
call fcn.39e567c2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x26c]
push ecx
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.39e567c2
add esp, 0x18
mov byte [ebp - 4], 5
push ebx
push edi
lea ecx, [ebp - 0x2cc]
call fcn.39eb4742
mov byte [ebp - 4], 6
push ebx
push edi
lea ecx, [ebp - 0x320]
call fcn.39eb4742
lea eax, [ebp - 0x48]
push eax
call fcn.39eb4742
push ebx
test eax, eax
je 0x39e9b67f
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2e8]
push 0x39e0a0e8
push eax
call fcn.39e4ad04
mov byte [ebp - 4], 7
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x2a4], esp
push 0x39e0a098
push eax
push ecx
call fcn.39e567c2
add esp, 0xc
mov byte [ebp - 4], 8
mov eax, dword [esi]
add eax, 0xc
mov byte [ebp - 4], 7
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 6
push ebx
push edi
lea ecx, [ebp - 0x2e8]
call fcn.39eb4742
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x39e9b661
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edx, dword [ebp - 0x29c]
mov ecx, dword [ebp - 0x2b0]
inc dword [ebp - 0x29c]
mov dword [ecx + edx*4], eax
jmp 0x39e9b6ad
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x2a4], esp
lea ecx, [ebp - 0x48]
push ecx
push 0x39e0a048
push eax
call fcn.39e4ad04
add esp, 0xc
mov byte [ebp - 4], 9
mov eax, dword [esi]
add eax, 0xc
mov byte [ebp - 4], 6
mov ecx, esi
call dword [eax]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
jmp 0x39e9b795
push 0x39e0a03c
push dword [ebp - 0x2a4]
call fcn.39eb4742
pop ecx
pop ecx
test eax, eax
jne 0x39e9b79c
push dword [ebp - 0x2ac]
lea ecx, [ebp - 0x33c]
call fcn.39eb4742
mov dword [ebp - 4], 0xa
push 0x39e172f4
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.39e567c2
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x26c]
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.39e567c2
add esp, 0x18
mov byte [ebp - 4], 0xd
push ebx
push edi
lea ecx, [ebp - 0x304]
call fcn.39eb4742
mov byte [ebp - 4], 0xe
push ebx
push edi
lea ecx, [ebp - 0x33c]
call fcn.39eb4742
lea eax, [ebp - 0x2c]
push eax
call fcn.39eb4742
test eax, eax
je 0x39e9b75f
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x39e9b750
lea eax, [ebp - 0x28]
push esi
push dword [ebp - 0x2a8]
push eax
call fcn.39e9b0ec
jmp 0x39e9b78e
push ebx
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x2a4], esp
lea ecx, [ebp - 0x2c]
push ecx
push 0x39e0a048
push eax
call fcn.39e4ad04
add esp, 0xc
mov byte [ebp - 4], 0xf
mov eax, dword [esi]
add eax, 0xc
mov byte [ebp - 4], 0xe
mov ecx, esi
call dword [eax]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push ebx
push edi
call fcn.39eb4742
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x2a0]
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
je 0x39e9b7c2
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x29c], eax
jl 0x39e9b53f
cmp dword [ebp - 0x2a0], 0xffffffff
je 0x39e9b7d7
push dword [ebp - 0x2a0]
call dword [sym.imp.kernel32.dll_FindClose]
push dword [ebp - 0x2a8]
lea ecx, [ebp - 0x304]
call fcn.39eb4742
mov dword [ebp - 4], 0x10
push 0x39e0a02c
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.39e567c2
add esp, 0xc
mov byte [ebp - 4], 0x11
cmp dword [eax + 0x18], 8
jb 0x39e9b813
mov eax, dword [eax + 4]
jmp 0x39e9b816
add eax, 4
lea ecx, [ebp - 0x298]
push ecx
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x2a0], eax
mov byte [ebp - 4], 0x10
push ebx
push edi
lea ecx, [ebp - 0x33c]
call fcn.39eb4742
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0x304]
call fcn.39eb4742
mov eax, dword [ebp - 0x29c]
cmp eax, dword [ebp + 0x10]
jge 0x39e9b98e
cmp dword [ebp - 0x2a0], 0xffffffff
je 0x39e9b9a3
push dword [ebp - 0x2a8]
lea ecx, [ebp - 0x320]
call fcn.39eb4742
mov dword [ebp - 4], 0x12
push 0x39e172f4
push eax
lea eax, [ebp - 0x2e8]
push eax
call fcn.39e567c2
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x26c]
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.39e567c2
add esp, 0x18
mov byte [ebp - 4], 0x15
push ebx
push edi
lea ecx, [ebp - 0x2e8]
call fcn.39eb4742
mov byte [ebp - 4], 0x16
push ebx
push edi
lea ecx, [ebp - 0x320]
call fcn.39eb4742
push ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2cc]
push 0x39e0a0e8
push eax
call fcn.39e4ad04
mov byte [ebp - 4], 0x17
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x2a4], esp
push 0x39e0a098
push eax
push ecx
call fcn.39e567c2
add esp, 0xc
mov byte [ebp - 4], 0x18
mov eax, dword [esi]
add eax, 0xc
mov byte [ebp - 4], 0x17
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 0x16
push ebx
push edi
lea ecx, [ebp - 0x2cc]
call fcn.39eb4742
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x39e9b92e
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edx, dword [ebp - 0x29c]
mov ecx, dword [ebp - 0x2b0]
inc dword [ebp - 0x29c]
mov dword [ecx + edx*4], eax
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x2a0]
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
je 0x39e9b980
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0x2c]
call fcn.39eb4742
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x29c], eax
jl 0x39e9b85b
jmp 0x39e9b98e
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0x2c]
call fcn.39eb4742
cmp dword [ebp - 0x2a0], 0xffffffff
je 0x39e9b9a3
push dword [ebp - 0x2a0]
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, dword [ebp - 0x29c]
call fcn.39eaed4a
ret 0x14