Function at 0x10005440
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x201c
call fcn.10001480
push ebx
xor eax, eax
mov byte [esp + 7], 0
push ebp
push esi
push edi
mov edi, dword [esp + 0x2030]
xor esi, esi
xor ebx, ebx
mov byte [esp + 0x12], 0
mov dword [esp + 0x30], eax
mov ebp, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], esi
cmp di, 4
jne 0x100054a9
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, 0x3ff
and ax, cx
mov ecx, 4
cmp cx, ax
je 0x100054c8
push 0x1000
lea eax, [esp + 0x34]
push eax
movzx eax, di
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
cmovne esi, dword [esp + 0x34]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x2034]
lea eax, [esp + 0x258]
push 0x104
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
xor eax, eax
push 0x104
mov word [esp + 0x46e], ax
lea eax, [esp + 0x60]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
xor eax, eax
mov word [esp + 0x26e], ax
mov word [esp + 0x478], ax
lea eax, [esp + 0x270]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
add esp, 0x20
test eax, eax
je 0x1000552c
add eax, 2
jmp 0x10005533
lea eax, [esp + 0x258]
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x668]
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, 0xffffffff
je 0x10005a1c
mov ebx, dword [sym.imp.msvcrt.dll_fclose]
push 0x104
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
xor eax, eax
mov word [esp + 0x262], ax
lea eax, [esp + 0x5c]
push 0x104
push eax
call fcn.100014c8
mov ecx, 0x103
sub ecx, eax
cmp byte [esp + 0x26], 0
push ecx
lea ecx, [esp + 0x6ac]
lea eax, [esp + 0x478]
cmove eax, ecx
push eax
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.msvcrt.dll_wcsncat]
xor eax, eax
mov word [esp + 0x276], ax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x70]
push 0x100550d8
push eax
call dword [sym.imp.msvcrt.dll__wfopen]
mov edi, eax
add esp, 0x28
test edi, edi
je 0x100056c2
push edi
lea eax, [esp + 0x8bc]
push 0x7d0
push eax
call dword [sym.imp.msvcrt.dll_fgets]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100056bc
push 3
push 0x100550e0
push esi
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x10005629
mov dword [esp + 0x24], 0xfde9
add esi, 3
jmp 0x10005631
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
push str.__t_r_n
push esi
call dword [sym.imp.msvcrt.dll_strspn]
add esi, eax
push esi
call dword [sym.imp.msvcrt.dll_strlen]
add esp, 0xc
test eax, eax
je 0x100056bc
lea eax, [esp + 0x18]
push eax
push str._lang___x
push esi
call dword [sym.imp.msvcrt.dll_sscanf]
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov esi, dword [esp + 0x2030]
cmp eax, 1
jne 0x1000567c
movzx eax, si
cmp ecx, eax
je 0x10005726
mov eax, esi
and eax, 0x3ff
cmp ecx, eax
jne 0x100056b4
push 0x104
lea eax, [esp + 0x698]
push eax
lea eax, [esp + 0x468]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
xor eax, eax
push edi
mov word [esp + 0x676], ax
call ebx
add esp, 0x10
jmp 0x100056c9
push edi
call ebx
add esp, 4
jmp 0x100056c9
push edi
call ebx
add esp, 4
mov esi, dword [esp + 0x2030]
xor ebx, ebx
mov byte [esp + 0x13], 0
cmp byte [esp + 0x12], bl
jne 0x10005a11
lea eax, [esp + 0x668]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, dword [sym.imp.msvcrt.dll_fclose]
test eax, eax
jne 0x10005560
xor ebx, ebx
mov byte [esp + 0x13], 0
cmp word [esp + 0x460], bx
je 0x10005a11
and esi, 0x3ff
mov byte [esp + 0x12], 1
mov dword [esp + 0x2030], esi
jmp 0x1000555a
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
add esp, 4
xor eax, eax
cmp dword [ebp + 0x10], eax
jle 0x1000575d
lea esp, [esp]
mov dword [ebx + eax*4], 0xffffffff
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x10005750
push edi
lea eax, [esp + 0x8bc]
push 0x7d0
push eax
call dword [sym.imp.msvcrt.dll_fgets]
add esp, 0xc
test eax, eax
je 0x100059d6
mov esi, dword [sym.imp.msvcrt.dll_sscanf]
lea eax, [esp + 0x18]
mov byte [esp + 0x12], 0
push eax
lea eax, [esp + 0x8bc]
push str.__u_
push eax
call esi
add esp, 0xc
cmp eax, 1
je 0x100057c8
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x16]
push eax
lea eax, [esp + 0x8c0]
push str.__c_u_
push eax
call esi
add esp, 0x10
cmp eax, 2
jne case.0x100057dd.1
movsx eax, byte [esp + 0x12]
cmp eax, 0x74
ja case.0x100057dd.1
movzx eax, byte [eax + 0x10005a60]
jmp dword [eax*4 + 0x10005a4c]
or dword [esp + 0x18], 0x1000000
jmp case.0x100057dd.0
or dword [esp + 0x18], 0x2000000
jmp case.0x100057dd.0
or dword [esp + 0x18], 0x4000000
lea eax, [esp + 0x8b8]
push 0x3d
push eax
call dword [sym.imp.msvcrt.dll_strchr]
add esp, 8
test eax, eax
je case.0x100057dd.1
inc eax
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.msvcrt.dll_strlen]
mov esi, eax
add esp, 4
test esi, esi
je 0x100059b1
mov eax, dword [esp + 0x14]
cmp byte [esi + eax - 1], 0xa
lea ecx, [esi + eax]
jne 0x1000584d
sub esi, 1
lea ecx, [esi + eax]
mov byte [ecx], 0
je 0x10005858
cmp byte [ecx - 1], 0xd
jne 0x10005860
dec esi
mov byte [esi + eax], 0
test esi, esi
je 0x100059b1
push dword [esp + 0x18]
mov ecx, ebp
call fcn.10005300
mov ecx, eax
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x100059b1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
add eax, dword [esp + 0x18]
lea ecx, [eax*4]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x2c], ecx
cmp dword [ecx + eax], 0
je 0x100059b1
mov ecx, dword [esp + 0x14]
mov edx, 0x1005510c
push 0x10055108
call fcn.10005c90
mov ecx, dword [esp + 0x18]
mov edx, 0x10055114
push 0x10055110
sub esi, eax
call fcn.10005c90
mov ecx, dword [esp + 0x1c]
mov edx, 0x1005511c
push 0x10055118
sub esi, eax
call fcn.10005c90
mov ecx, dword [esp + 0x20]
mov edx, 0x10055124
push 0x10055120
sub esi, eax
call fcn.10005c90
mov ecx, dword [esp + 0x24]
mov edx, 0x1005512c
push 0x10055128
sub esi, eax
call fcn.10005c90
mov ecx, 1
add esp, 0x14
sub ecx, eax
mov eax, dword [esp + 0x20]
add esi, ecx
cmp byte [eax + 0xc], 0
je 0x10005954
push 0x7d0
lea eax, [esp + 0x108c]
push eax
push esi
push dword [esp + 0x20]
push 0
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
je 0x100059b1
mov edx, dword [ebp + 0x20]
lea eax, [esp + 0x1088]
mov dword [esp + 0x14], eax
lea ecx, [ebp + 0x1c]
add esi, esi
mov dword [esp + 0x20], edx
jmp 0x10005965
cmp dword [esp + 0x14], 0
lea ecx, [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x20], eax
je 0x100059b1
mov eax, dword [ecx + 4]
add eax, esi
mov dword [esp + 0x28], eax
cmp eax, dword [ecx + 8]
jbe 0x10005980
push esi
call fcn.100029a0
test eax, eax
je 0x100059b1
lea ecx, [ebp + 0x1c]
mov eax, dword [ecx + 4]
add eax, dword [ecx]
push esi
push dword [esp + 0x18]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x34]
add esp, 0xc
test esi, esi
mov dword [ebp + 0x20], eax
mov esi, dword [sym.imp.msvcrt.dll_sscanf]
je case.0x100057dd.1
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov dword [ecx + ebx], eax
jmp case.0x100057dd.1
mov esi, dword [sym.imp.msvcrt.dll_sscanf]
push edi
lea eax, [esp + 0x8bc]
push 0x7d0
push eax
call dword [sym.imp.msvcrt.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x10005782
xor edx, edx
cmp dword [ebp + 0x10], edx
jle 0x10005a02
lea ecx, [ecx]
mov esi, dword [ebx + edx*4]
test esi, esi
js 0x100059fc
mov eax, dword [ebp + 0x1c]
mov ecx, 0x1005bda8
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp + 0x18]
add ecx, esi
mov dword [eax + edx*4], ecx
inc edx
cmp edx, dword [ebp + 0x10]
jl 0x100059e0
push edi
mov byte [esp + 0x17], 1
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 4
mov edi, dword [esp + 0x2030]
mov esi, dword [esp + 0x1c]
mov word [ebp], di
test ebx, ebx
je 0x10005a2e
push ebx
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
cmp esi, 0xffffffff
je 0x10005a3a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x201c
ret 8