Function at 0x100053f0
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 0x10005459
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, 0x3ff
and ax, cx
mov ecx, 4
cmp cx, ax
je 0x10005478
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 0x100054dc
add eax, 2
jmp 0x100054e3
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 0x100059cc
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 0x10053078
push eax
call dword [sym.imp.msvcrt.dll__wfopen]
mov edi, eax
add esp, 0x28
test edi, edi
je 0x10005672
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 0x1000566c
push 3
push 0x10053080
push esi
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x100055d9
mov dword [esp + 0x24], 0xfde9
add esi, 3
jmp 0x100055e1
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 0x1000566c
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 0x1000562c
movzx eax, si
cmp ecx, eax
je 0x100056d6
mov eax, esi
and eax, 0x3ff
cmp ecx, eax
jne 0x10005664
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 0x10005679
push edi
call ebx
add esp, 4
jmp 0x10005679
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 0x100059c1
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 0x10005510
xor ebx, ebx
mov byte [esp + 0x13], 0
cmp word [esp + 0x460], bx
je 0x100059c1
and esi, 0x3ff
mov byte [esp + 0x12], 1
mov dword [esp + 0x2030], esi
jmp 0x1000550a
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 0x1000570d
lea esp, [esp]
mov dword [ebx + eax*4], 0xffffffff
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x10005700
push edi
lea eax, [esp + 0x8bc]
push 0x7d0
push eax
call dword [sym.imp.msvcrt.dll_fgets]
add esp, 0xc
test eax, eax
je 0x10005986
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 0x10005778
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.0x1000578d.1
movsx eax, byte [esp + 0x12]
cmp eax, 0x74
ja case.0x1000578d.1
movzx eax, byte [eax + 0x10005a10]
jmp dword [eax*4 + 0x100059fc]
or dword [esp + 0x18], 0x1000000
jmp case.0x1000578d.0
or dword [esp + 0x18], 0x2000000
jmp case.0x1000578d.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.0x1000578d.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 0x10005961
mov eax, dword [esp + 0x14]
cmp byte [esi + eax - 1], 0xa
lea ecx, [esi + eax]
jne 0x100057fd
sub esi, 1
lea ecx, [esi + eax]
mov byte [ecx], 0
je 0x10005808
cmp byte [ecx - 1], 0xd
jne 0x10005810
dec esi
mov byte [esi + eax], 0
test esi, esi
je 0x10005961
push dword [esp + 0x18]
mov ecx, ebp
call fcn.100052b0
mov ecx, eax
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x10005961
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 0x10005961
mov ecx, dword [esp + 0x14]
mov edx, 0x100530ac
push 0x100530a8
call fcn.10005c40
mov ecx, dword [esp + 0x18]
mov edx, 0x100530b4
push 0x100530b0
sub esi, eax
call fcn.10005c40
mov ecx, dword [esp + 0x1c]
mov edx, 0x100530bc
push 0x100530b8
sub esi, eax
call fcn.10005c40
mov ecx, dword [esp + 0x20]
mov edx, 0x100530c4
push 0x100530c0
sub esi, eax
call fcn.10005c40
mov ecx, dword [esp + 0x24]
mov edx, 0x100530cc
push 0x100530c8
sub esi, eax
call fcn.10005c40
mov ecx, 1
add esp, 0x14
sub ecx, eax
mov eax, dword [esp + 0x20]
add esi, ecx
cmp byte [eax + 0xc], 0
je 0x10005904
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 0x10005961
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 0x10005915
cmp dword [esp + 0x14], 0
lea ecx, [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x20], eax
je 0x10005961
mov eax, dword [ecx + 4]
add eax, esi
mov dword [esp + 0x28], eax
cmp eax, dword [ecx + 8]
jbe 0x10005930
push esi
call fcn.10002980
test eax, eax
je 0x10005961
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.0x1000578d.1
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov dword [ecx + ebx], eax
jmp case.0x1000578d.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 0x10005732
xor edx, edx
cmp dword [ebp + 0x10], edx
jle 0x100059b2
lea ecx, [ecx]
mov esi, dword [ebx + edx*4]
test esi, esi
js 0x100059ac
mov eax, dword [ebp + 0x1c]
mov ecx, 0x10059d98
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 0x10005990
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 0x100059de
push ebx
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
cmp esi, 0xffffffff
je 0x100059ea
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