Function at 0x4a13b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5ffc5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x29c
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
xor ecx, ecx
push esi
push edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ebx
mov word [esp + 0x20], bx
mov eax, dword [ebp + 8]
mov dword [esp + 0x2b4], ebx
cmp eax, ebx
jne 0x4a13f7
lea eax, [ebp + 0xc]
mov edx, str._s.gsd
test edx, edx
je 0x4a14d8
cmp eax, ebx
je 0x4a14d8
push eax
lea ecx, [esp + 0x14]
call fcn.0040d7a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2b4], 1
call fcn.00401070
push str._s.gsd
lea ecx, [esp + 0x34]
call fcn.00401fd0
mov eax, dword [esp + 0x10]
mov byte [esp + 0x2b4], 2
cmp eax, ebx
jne 0x4a1449
lea eax, [esp + 0x14]
mov esi, dword [esp + 0x38]
push eax
call fcn.005c7292
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.005dfcbc
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x1c], edi
je 0x4a14af
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x10]
call fcn.00402050
push eax
lea ecx, [esp + 0x34]
call fcn.00402050
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.005c7222
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.005c7292
add esp, 0x14
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x2b4], 1
call fcn.00401070
lea ecx, [esp + 0x10]
mov byte [esp + 0x2b4], bl
call fcn.00401070
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x2c]
cmp ecx, ebx
mov eax, ecx
jne 0x4a14e2
lea eax, [esp + 0x20]
lea edx, [esp + 0x5c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x3c], eax
je 0x4a1720
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov word [esp + 0x14], bx
mov esi, dword [ebp + 8]
mov byte [esp + 0x2b4], 3
cmp esi, ebx
jne 0x4a151a
lea esi, [ebp + 0xc]
mov eax, 0x6a2074
test eax, eax
je 0x4a164a
cmp esi, ebx
je 0x4a164a
lea ecx, [esp + 0x88]
test ecx, ecx
je 0x4a164a
push eax
lea ecx, [esp + 0x50]
call fcn.00401fd0
push esi
lea ecx, [esp + 0x44]
mov byte [esp + 0x2b8], 4
call fcn.0040d7a0
lea edx, [esp + 0x88]
lea ecx, [esp + 0x30]
push edx
mov byte [esp + 0x2b8], 5
call fcn.0040d7a0
lea ecx, [esp + 0x10]
mov byte [esp + 0x2b4], 6
call fcn.00401070
mov esi, dword [esp + 0x54]
lea ecx, [esp + 0x30]
call fcn.00402050
push eax
call fcn.005c7292
add esp, 4
lea ecx, [esp + 0x40]
mov edi, eax
call fcn.00402050
push eax
call fcn.005c7292
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005dfcbc
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x4a1613
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x30]
call fcn.00402050
push eax
lea ecx, [esp + 0x44]
call fcn.00402050
push eax
lea ecx, [esp + 0x54]
call fcn.00402050
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.005c7222
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005c7292
add esp, 0x18
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x2b4], 5
call fcn.00401070
lea ecx, [esp + 0x40]
mov byte [esp + 0x2b4], 4
call fcn.00401070
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2b4], 3
call fcn.00401070
mov ebp, dword [esp + 0x2c]
push 0x40
call fcn.005dfcbc
add esp, 4
mov dword [esp + 0x58], eax
cmp eax, ebx
mov byte [esp + 0x2b4], 7
je 0x4a166d
mov ecx, eax
call fcn.005059a0
jmp 0x4a166f
xor eax, eax
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x2b4], 3
cmp ecx, ebx
mov dword [esp + 0x28], eax
jne 0x4a1687
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00505a50
mov esi, dword [0x6d10e4]
mov ecx, dword [esp + 0x28]
xor eax, eax
cmp esi, ebx
jle 0x4a16b4
mov edi, dword [ecx + 0x2c]
mov edx, dword [0x6d10e0]
cmp dword [edx], edi
je 0x4a16e7
inc eax
add edx, 0xc
cmp eax, esi
jl 0x4a16a8
cmp ecx, ebx
je 0x4a16be
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x5c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov byte [esp + 0x2b4], bl
lea ecx, [esp + 0x10]
je 0x4a1714
call fcn.00401070
jmp 0x4a14fb
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x4a16f3
lea eax, [esp + 0x14]
push eax
push 0x6a1fe8
add ecx, 0x30
call fcn.004196d0
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0x14]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.0041e790
jmp 0x4a16be
call fcn.00401070
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2b4], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x2ac]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2a8
ret