Function at 0x518df0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1cbe
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1350
call fcn.0055af50
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x132c], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1324], esi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1344], edi
mov ebx, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0x1328], eax
mov dword [ebp - 0x1318], eax
push 0x2c
call fcn.00559a21
add esp, 4
xor ecx, ecx
cmp eax, ecx
je 0x51955e
mov dword [ebp - 0x131c], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x131c]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x131c]
mov dword [eax + 8], eax
mov edx, dword [ebp - 0x131c]
mov byte [edx + 0x28], 1
mov eax, dword [ebp - 0x131c]
mov byte [eax + 0x29], 1
mov dword [ebp - 4], 4
cmp esi, ecx
jne 0x518f47
push edi
call fcn.0053a1b0
add esp, 4
test al, al
je 0x518ed1
push 0x626720
push 0x1f3
push str.fts::FilesList
push str.Directory_name_cannot_be_empty
push 0
push 0
push 0
push 1
call edi
add esp, 0x20
lea ecx, [ebp - 0x1320]
push ecx
mov esi, dword [ebp - 0x132c]
mov ecx, esi
call fcn.00516a40
mov byte [ebp - 4], 4
mov dword [ebp - 0x1328], 1
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x131c]
mov ecx, dword [eax]
push eax
push ecx
lea edx, [ebp - 0x1324]
push edx
lea ecx, [ebp - 0x1320]
call fcn.005162f0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x131c]
push eax
call fcn.00558723
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret
mov edi, 7
mov dword [ebp - 0x101c], edi
mov dword [ebp - 0x1020], ecx
xor ecx, ecx
mov word [ebp - 0x1030], cx
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x518f66
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x1030]
call fcn.00422a20
mov byte [ebp - 4], 8
test ebx, ebx
je 0x518fa3
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x518f90
sub eax, edx
sar eax, 1
mov edx, ebx
jne 0x518fa8
mov edx, 0x5d9120
mov dword [ebp - 0x1054], edi
mov dword [ebp - 0x1058], 0
xor eax, eax
mov word [ebp - 0x1068], ax
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x518fc6
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x1068]
call fcn.00422a20
mov byte [ebp - 4], 9
test ebx, ebx
je 0x519162
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x518ff3
sub eax, edx
sar eax, 1
je 0x519162
push 0x3b
lea ecx, [ebp - 0x1068]
push ecx
lea edx, [ebp - 0x1354]
push edx
call fcn.00518d90
add esp, 0xc
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x1350]
sub ecx, dword [ebp - 0x1354]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp esi, 1
jbe 0x519153
push 0
push 0x5e3368
lea ecx, [ebp - 0x1068]
call fcn.00422a20
test esi, esi
je 0x519153
xor edi, edi
mov bl, 0xb
lea ebx, [ebx]
mov eax, dword [ebp - 0x1354]
lea ecx, [edi + eax]
push 2
push 0
lea edx, [ebp - 0x104c]
push edx
call fcn.0040f3b0
mov byte [ebp - 4], bl
push 2
push 0x5d91c8
mov eax, dword [ebp - 0x103c]
push eax
push 0
lea ecx, [ebp - 0x104c]
call fcn.0041c5b0
test eax, eax
je 0x5190e6
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x1038], 8
jb 0x5190c7
mov ecx, dword [ebp - 0x104c]
push ecx
call fcn.00558723
add esp, 4
mov dword [ebp - 0x1038], 7
mov dword [ebp - 0x103c], 0
xor edx, edx
mov word [ebp - 0x104c], dx
jmp 0x519149
mov eax, dword [ebp - 0x1354]
add eax, edi
cmp dword [eax + 0x10], 3
jb 0x51913a
cmp dword [ebp - 0x1058], 0
mov ecx, 0x5e3368
je 0x519107
mov ecx, 0x5e47cc
push eax
push ecx
lea ecx, [ebp - 0x1084]
push ecx
call fcn.00515d00
add esp, 0xc
mov byte [ebp - 4], 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x1068]
call fcn.00418980
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1084]
call fcn.004222c0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x104c]
call fcn.004222c0
add edi, 0x1c
dec esi
jne 0x519070
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1354]
call fcn.00411650
push 0x3b
lea edx, [ebp - 0x1068]
push edx
lea eax, [ebp - 0x133c]
push eax
call fcn.00518d90
add esp, 0xc
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x1338]
sub ecx, dword [ebp - 0x133c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov dword [ebp - 0x1310], ebx
mov byte [ebp - 4], 0xe
xor edi, edi
mov dword [ebp - 0x1340], edi
cmp edi, ebx
jae 0x5193b2
lea ecx, [ebp - 0x1030]
push ecx
lea edx, [ebp - 0x10a0]
push edx
call fcn.00516150
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x1030]
cmp eax, esi
je 0x519273
cmp dword [ebp - 0x101c], 8
jb 0x5191f9
mov ecx, dword [ebp - 0x1030]
push ecx
call fcn.00558723
add esp, 4
mov ebx, 7
mov dword [ebp - 0x101c], ebx
mov dword [ebp - 0x1020], 0
xor edx, edx
mov word [ebp - 0x1030], dx
cmp dword [esi + 0x14], 8
jae 0x519236
mov eax, dword [esi + 0x10]
inc eax
add eax, eax
push eax
push esi
lea ecx, [ebp - 0x1030]
push ecx
call fcn.005596c0
add esp, 0xc
jmp 0x519244
mov edx, dword [esi]
mov dword [ebp - 0x1030], edx
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1020], eax
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x101c], ecx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x519268
mov esi, dword [esi]
xor edx, edx
mov word [esi], dx
mov ebx, dword [ebp - 0x1310]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x10a0]
call fcn.004222c0
lea eax, [edi*8]
sub eax, edi
mov ecx, dword [ebp - 0x133c]
lea eax, [ecx + eax*4]
push eax
lea ecx, [ebp - 0x104c]
call fcn.00421ac0
mov byte [ebp - 4], 0x10
lea edx, [ebp - 0x104c]
push edx
lea eax, [ebp - 0x1030]
push eax
lea ecx, [ebp - 0x1084]
push ecx
call fcn.0041a380
add esp, 0xc
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x103c], 1
jbe 0x519316
push 1
lea ecx, [ebp - 0x104c]
call fcn.004e6820
cmp word [eax], 0x2e
jne 0x519316
push 0xffffffffffffffff
push 2
lea edx, [ebp - 0x10bc]
push edx
lea ecx, [ebp - 0x104c]
call fcn.0040f3b0
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x104c]
call fcn.00414940
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x10bc]
call fcn.004222c0
cmp dword [ebp - 0x1070], 8
mov eax, dword [ebp - 0x1084]
jae 0x51932b
lea eax, [ebp - 0x1084]
lea ecx, [ebp - 0x130c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x51938e
mov eax, dword [ebp - 0x130c]
test al, 0x10
jne 0x519375
test al, 0x20
je 0x519375
push 0
lea edx, [ebp - 0x12e0]
push edx
lea ecx, [ebp - 0x1320]
call fcn.00515e10
push eax
lea eax, [ebp - 0x134c]
push eax
lea ecx, [ebp - 0x1320]
call fcn.004ed5b0
lea ecx, [ebp - 0x130c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x519340
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x1084]
call fcn.004222c0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x104c]
call fcn.004222c0
inc edi
jmp 0x5191a9
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x1320]
push ecx
mov ebx, dword [ebp - 0x132c]
mov ecx, ebx
call fcn.00516a40
mov byte [ebp - 4], 0xd
or dword [ebp - 0x1328], 1
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x133c]
xor edi, edi
cmp esi, edi
je 0x51941a
mov edi, dword [ebp - 0x1338]
cmp esi, edi
je 0x51940f
push esi
lea edx, [ebp - 0x1330]
push edx
call fcn.0041e7c0
add esp, 8
add esi, 0x1c
cmp esi, edi
jne 0x5193f2
mov esi, dword [ebp - 0x133c]
push esi
call fcn.00558723
add esp, 4
xor edi, edi
mov dword [ebp - 0x133c], edi
mov dword [ebp - 0x1338], edi
mov dword [ebp - 0x1334], edi
mov byte [ebp - 4], 8
mov esi, 8
cmp dword [ebp - 0x1054], esi
jb 0x51944c
mov eax, dword [ebp - 0x1068]
push eax
call fcn.00558723
add esp, 4
mov dword [ebp - 0x1054], 7
mov dword [ebp - 0x1058], edi
xor ecx, ecx
mov word [ebp - 0x1068], cx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x101c], esi
jb 0x519480
mov edx, dword [ebp - 0x1030]
push edx
call fcn.00558723
add esp, 4
mov dword [ebp - 0x101c], 7
mov dword [ebp - 0x1020], edi
xor eax, eax
mov word [ebp - 0x1030], ax
mov dword [ebp - 4], 0x16
mov eax, dword [ebp - 0x131c]
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [ebp - 0x1324]
push ecx
lea ecx, [ebp - 0x1320]
call fcn.005162f0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x131c]
push edx
call fcn.00558723
add esp, 4
mov eax, ebx
jmp 0x518f2b
mov dword [ebp - 0x1310], ecx
lea eax, [ebp - 0x1310]
push eax
lea ecx, [ebp - 0x1360]
call fcn.0055909d
mov dword [ebp - 4], 1
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
mov byte [ebp - 4], 0
push 0x60e354
lea ecx, [ebp - 0x1360]
push ecx
call fcn.00559aa1
int3