Function at 0x10039740
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009bc2f
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x100ef034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
xor esi, esi
mov dword [ebp - 0x2bc], esi
mov dword [ebp - 0x2b4], 0x100c7e28
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 4], esi
push ecx
lea ecx, [ebp - 0x28]
call fcn.10038fd0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100397e2
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
cmp edx, 8
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x100397e2
cmp ecx, edx
jae 0x100397d0
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [eax + ecx*2], 0x5c
jmp 0x100397e2
push 0x5c
push dword [ebp - 0x2b8]
lea ecx, [ebp - 0x28]
push 1
call fcn.100375b0
push 0x100c7e00
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
call fcn.10039f70
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2a8]
push 0x250
push 0
push eax
call fcn.10078b00
add esp, 0x10
lea ecx, [ebp - 0x2a8]
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2b8], eax
cmp eax, dword [ebp - 0x2b0]
je 0x1003984e
mov edx, dword [ebp - 0x2b4]
lea ecx, [ebp - 0x2b4]
call dword [edx + 4]
mov eax, dword [ebp - 0x2b8]
mov dword [ebp - 0x2b0], eax
cmp dword [ebp - 0x2b0], 0xffffffff
jne 0x10039863
mov byte [ebp - 0x2a9], 0
jmp 0x1003999e
test byte [ebp - 0x2a8], 0x10
je 0x10039966
cmp word [ebp - 0x27c], 0x2e
jne 0x1003989e
mov ax, word [ebp - 0x27a]
test ax, ax
je 0x10039966
cmp ax, 0x2e
jne 0x1003989e
cmp word [ebp - 0x278], 0
je 0x10039966
mov byte [ebp - 4], 3
lea eax, [ebp - 0x27c]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100398b0
sub eax, edx
mov ecx, SysReAllocString
mov edx, dword [ebp - 0x18]
sub ecx, edx
sar eax, 1
cmp ecx, eax
jb 0x10039a03
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push eax
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x27c]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x2b8]
lea ecx, [ebp - 0x40]
call fcn.1003a470
or esi, 1
mov dword [ebp - 0x2bc], esi
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x10039945
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [edi + 4], 0x18
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
jmp 0x10039951
lea ecx, [ebp - 0x40]
push ecx
push eax
mov ecx, edi
call fcn.1003a560
and esi, 0xfffffffe
mov dword [ebp - 0x2bc], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.10038340
lea eax, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2b0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10039863
mov ecx, dword [edi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [edi]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
setne byte [ebp - 0x2a9]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10038340
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10038340
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2b0]
mov dword [ebp - 0x2b4], 0x100c7e28
test ecx, ecx
je 0x100399e2
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x2b0], 0
mov al, byte [ebp - 0x2a9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007685e
mov esp, ebp
pop ebp
ret
call fcn.10037c80
int3