Function at 0x10004540
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x884
mov eax, dword [esp + 0x888]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea ecx, [esp + 0x788]
push str._s.
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x20]
lea eax, [esp + 0x784]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x1000458f
xor eax, eax
pop ebp
add esp, 0x884
ret 8
push ebx
mov ebx, dword [esp + 0x894]
push esi
push edi
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x58]
push 0x100073f8
push ecx
call esi
add esp, 8
test eax, eax
je 0x100049be
lea edx, [esp + 0x58]
push 0x100073f4
push edx
call esi
add esp, 8
test eax, eax
je 0x100049be
mov ecx, dword [esp + 0x898]
lea eax, [esp + 0x58]
push eax
push ecx
lea edx, [esp + 0x694]
push str._s_s
push edx
call ebp
mov eax, dword [esp + 0x3c]
add esp, 0x10
test al, 0x10
je 0x10004608
mov dword [esp + 0x174], 1
mov dword [esp + 0x170], eax
jmp 0x10004625
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x174], 0
mov dword [esp + 0x170], eax
mov dword [esp + 0x16c], ecx
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x484]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x588]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x68c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea ecx, [esp + 0x10]
push ecx
push edx
call esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1a]
mov edx, dword [esp + 0x18]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x1a]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1a]
push edx
mov edx, dword [esp + 0x1c]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x190]
push str._d__d__d__d:_d:_d
push eax
call ebp
add esp, 0x20
lea ecx, [esp + 0x10]
lea edx, [esp + 0x38]
push ecx
push edx
call esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1a]
mov edx, dword [esp + 0x18]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x1a]
push ecx
mov ecx, dword [esp + 0x1a]
and edx, 0xffff
push edx
mov edx, dword [esp + 0x1c]
and eax, 0xffff
and ecx, 0xffff
push eax
push ecx
and edx, 0xffff
push edx
lea eax, [esp + 0x398]
push str._d__d__d__d:_d:_d
push eax
call ebp
add esp, 0x20
lea ecx, [esp + 0x10]
lea edx, [esp + 0x40]
push ecx
push edx
call esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1a]
mov edx, dword [esp + 0x18]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x1a]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1a]
push edx
mov edx, dword [esp + 0x1c]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x294]
push str._d__d__d__d:_d:_d
push eax
call ebp
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
sub edx, ecx
mov eax, 0x63e7063f
imul edx
sar edx, 9
mov eax, edx
add esp, 0x20
shr eax, 0x1f
add edx, eax
mov ebp, ecx
cmp edx, 1
jae 0x100048d4
mov esi, dword [ebx + 4]
test esi, esi
je 0x100047df
mov edx, ecx
mov eax, 0x63e7063f
sub edx, esi
imul edx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
mov edi, edx
ja 0x100047e4
mov edi, 1
test esi, esi
jne 0x100047ec
xor edx, edx
jmp 0x100047ff
sub ecx, esi
mov eax, 0x63e7063f
imul ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea eax, [edx + edi]
test eax, eax
mov dword [esp + 0x24], eax
jge 0x1000480c
xor eax, eax
lea edx, [eax + eax*4]
lea eax, [eax + edx*8]
shl eax, 5
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, dword [ebx + 4]
add esp, 4
cmp edi, ebp
mov dword [esp + 0x20], eax
mov esi, eax
je 0x10004845
push edi
push esi
call fcn.10005610
add edi, 0x520
add esp, 8
add esi, 0x520
cmp edi, ebp
jne 0x1000482b
lea ecx, [esp + 0x16c]
push ecx
push 1
push esi
mov ecx, ebx
call fcn.100055d0
mov edx, dword [ebx + 8]
add esi, 0x520
push esi
push edx
push ebp
mov ecx, ebx
call fcn.10005590
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
push eax
push ecx
mov ecx, ebx
call fcn.100025a0
mov edx, dword [ebx + 4]
push edx
call fcn.10005812
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
add esp, 4
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*8]
mov eax, dword [ebx + 4]
shl edx, 5
add edx, esi
test eax, eax
mov dword [ebx + 0xc], edx
jne 0x100048a6
xor edx, edx
jmp 0x100048bc
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x63e7063f
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [edx + edx*4 + 5]
mov dword [ebx + 4], esi
lea edx, [edx + ecx*8 + 1]
shl edx, 5
add edx, esi
mov dword [ebx + 8], edx
jmp 0x100049b8
mov edx, ecx
mov eax, 0x63e7063f
sub edx, ebp
imul edx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x10004951
lea edx, [ebp + 0x520]
push edx
push ecx
push ebp
mov ecx, ebx
call fcn.10005590
mov esi, dword [ebx + 8]
lea eax, [esp + 0x16c]
mov ecx, esi
push eax
sub ecx, ebp
mov eax, 0x63e7063f
imul ecx
sar edx, 9
mov ecx, edx
mov eax, 1
shr ecx, 0x1f
add edx, ecx
mov ecx, ebx
sub eax, edx
push eax
push esi
call fcn.100055d0
mov eax, dword [ebx + 8]
cmp ebp, eax
je 0x100049b1
mov edi, ebp
add ebp, 0x520
mov ecx, 0x148
lea esi, [esp + 0x16c]
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x10004935
jmp 0x100049b1
lea eax, [ecx - 0x520]
push ecx
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x2c], eax
call fcn.10005590
mov edx, dword [ebx + 8]
lea eax, [edx - 0x520]
cmp ebp, eax
je 0x1000498c
sub eax, 0x520
sub edx, 0x520
mov ecx, 0x148
mov esi, eax
mov edi, edx
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x10004972
lea edx, [ebp + 0x520]
mov eax, ebp
cmp ebp, edx
je 0x100049b1
mov edi, eax
add eax, 0x520
mov ecx, 0x148
lea esi, [esp + 0x16c]
cmp eax, edx
rep movsd dword es:[edi], dword [esi]
jne 0x10004998
add dword [ebx + 8], 0x520
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10004599
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
add esp, 0x884
ret 8