Function at 0x1003c050
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004393b
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x100530b4]
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 dword [ebp - 0x164], ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x180], 0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x14], 0
xor edi, edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
push 1
push 0x100498c4
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.10007410
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x15c]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x160], eax
cmp eax, 0xffffffff
jne 0x1003c120
mov ebx, dword [ebp - 0x164]
mov ecx, dword [ebp + 0x1c]
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
cmp ecx, 0x10
jb 0x1003c110
inc ecx
push ecx
push dword [ebp + 8]
call fcn.10007b20
mov eax, ebx
jmp 0x1003c280
test byte [ebp - 0x15c], 0x10
jne 0x1003c237
cmp byte [ebp - 0x130], 0
mov dword [ebp - 0x168], 0xf
mov dword [ebp - 0x16c], 0
mov byte [ebp - 0x17c], 0
jne 0x1003c155
xor ecx, ecx
jmp 0x1003c169
lea ecx, [ebp - 0x130]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c160
sub ecx, edx
push ecx
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x17c]
call fcn.10007c20
lea eax, [ebp - 0x17c]
mov byte [ebp - 4], 2
cmp eax, esi
jae 0x1003c1c3
cmp ebx, eax
ja 0x1003c1c3
mov ecx, eax
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp esi, dword [ebp - 0x14]
jne 0x1003c1b7
push ecx
lea ecx, [ebp - 0x1c]
call fcn.100057f0
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
lea eax, [edi + edi*2]
lea eax, [ebx + eax*8]
test esi, esi
je 0x1003c1e8
jmp 0x1003c1e0
cmp esi, edi
jne 0x1003c1d6
push ecx
lea ecx, [ebp - 0x1c]
call fcn.100057f0
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
test esi, esi
je 0x1003c1e8
lea eax, [ebp - 0x17c]
push eax
mov ecx, esi
call fcn.100075a0
add esi, 0x18
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x18], esi
cmp eax, 0x10
jb 0x1003c22e
mov ecx, dword [ebp - 0x17c]
inc eax
cmp eax, 0x1000
jb 0x1003c225
test cl, 0x1f
jne 0x1003c254
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1003c254
sub ecx, eax
cmp ecx, 4
jb 0x1003c254
cmp ecx, 0x23
ja 0x1003c254
mov ecx, eax
push ecx
call fcn.1003ef74
add esp, 4
mov eax, dword [ebp - 0x160]
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x15c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1003c25a
mov eax, dword [ebp - 0x160]
jmp 0x1003c120
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [ebp - 0x164]
mov dword [eax], ebx
mov dword [eax + 4], esi
mov dword [eax + 8], edi
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x1003c27a
inc eax
push eax
push dword [ebp + 8]
call fcn.10007b20
mov eax, dword [ebp - 0x164]
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.1003ec02
mov esp, ebp
pop ebp
ret