Function at 0x49d8d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x55617d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x64
call fcn.005380a1
add esp, 4
mov dword [esp + 0x20], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x174], edi
je 0x49d915
mov ecx, eax
call fcn.00441a90
mov edi, eax
mov ecx, edi
mov dword [esp + 0x174], 0xffffffff
call fcn.00441bd0
mov eax, dword [0x5bace4]
lea ecx, [edi + 0x54]
push eax
push 0x597ddc
push ecx
call fcn.0053091a
mov ebx, dword [esi + 0x14]
lea ebp, [esi + 0xc]
add esp, 0xc
mov ecx, ebp
lea edx, [ebx + 1]
push 0xffffffffffffffff
push edx
call fcn.0049e0c0
mov eax, dword [ebp + 4]
push 0x64
mov dword [eax + ebx*4], edi
call fcn.005380a1
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x174], 1
je 0x49d97f
mov ecx, eax
call fcn.00441a90
mov edi, eax
jmp 0x49d981
xor edi, edi
mov ecx, edi
mov dword [esp + 0x174], 0xffffffff
mov dword [edi + 0x60], 2
call fcn.00441bd0
mov ecx, dword [0x5bace0]
lea edx, [edi + 0x54]
push ecx
push 0x597ddc
push edx
call fcn.0053091a
mov ebx, dword [ebp + 8]
add esp, 0xc
mov ecx, ebp
lea eax, [ebx + 1]
push 0xffffffffffffffff
push eax
call fcn.0049e0c0
mov ecx, dword [ebp + 4]
mov dword [ecx + ebx*4], edi
mov al, byte [esi + 4]
test al, al
je 0x49dc5a
mov edx, dword [0x5b5ecc]
mov dword [esp + 0x10], edx
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push eax
push str._sq_.dt
push ecx
mov dword [esp + 0x180], 2
call fcn.0053091a
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x20], esi
je 0x49dc46
lea ecx, [esp + 0x58]
push 0x5f
push ecx
call fcn.0051c7b0
mov edi, eax
add esp, 8
test edi, edi
je 0x49dc2b
movsx edx, byte [edi + 1]
inc edi
push edx
call fcn.0051cc4d
add esp, 4
test eax, eax
je 0x49dc2b
push edi
lea ecx, [esp + 0x18]
call fcn.00537b72
mov eax, dword [esp + 0x14]
push 0x2e
push eax
mov byte [esp + 0x17c], 3
call fcn.0051c7f0
add esp, 8
test eax, eax
je 0x49dc1a
mov byte [eax], 0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0051c8ac
mov edi, eax
add esp, 4
cmp edi, 2
jle 0x49dc1a
push 0x64
call fcn.005380a1
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0x174], 4
je 0x49dab9
mov ecx, eax
call fcn.00441a90
mov esi, eax
mov dword [esp + 0x1c], esi
jmp 0x49dac5
mov dword [esp + 0x1c], 0
mov esi, dword [esp + 0x1c]
mov ecx, esi
mov byte [esp + 0x174], 3
mov dword [esi + 0x60], edi
call fcn.00441bd0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov ebx, edx
xor edi, edi
mov dword [esp + 0x28], ebx
inc ebx
cmp ebx, edi
jne 0x49db09
cmp eax, edi
je 0x49dafe
push eax
mov dword [esp + 0x1c], edx
call fcn.005380ca
add esp, 4
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
jmp 0x49dc0c
cmp eax, edi
jne 0x49db41
lea edi, [ebx*4]
push edi
call fcn.005380a1
mov edx, eax
mov ecx, edi
mov dword [ebp + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x49dc0c
mov ecx, dword [ebp + 0xc]
cmp ebx, ecx
jg 0x49db71
cmp edx, ebx
jge 0x49db61
mov ecx, ebx
sub ecx, edx
lea edx, [eax + edx*4]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp + 8], ebx
jmp 0x49dc0c
jle 0x49db69
sub edx, ebx
mov dword [esp + 0x18], edx
mov dword [ebp + 8], ebx
jmp 0x49dc0c
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x49db9b
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x49db8f
mov eax, 4
jmp 0x49db9b
cmp eax, 0x400
jle 0x49db9b
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x24], eax
jl 0x49dba9
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x24]
lea ecx, [eax*4]
push ecx
call fcn.005380a1
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], eax
sub edx, ecx
lea eax, [eax + ecx*4]
push edx
push eax
call fcn.0049e200
mov eax, dword [ebp + 4]
push eax
call fcn.005380ca
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
add esp, 4
mov dword [ebp + 4], ecx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x28]
mov dword [eax + ecx*4], esi
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x14]
mov byte [esp + 0x174], 2
call fcn.00537b04
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x49da1d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov dword [esp + 0x174], 0xffffffff
call fcn.00537b04
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x168
ret