Function at 0x51a930
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a20fe
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1240
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 - 0x1218], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1214], esi
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x1234], ebx
mov edi, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0x121c], eax
mov dword [ebp - 0x1208], eax
push 0x2c
call fcn.00559a21
add esp, 4
test eax, eax
je 0x51b117
mov dword [ebp - 0x120c], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x120c]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x120c]
mov dword [eax + 8], eax
mov ecx, dword [ebp - 0x120c]
mov byte [ecx + 0x28], 1
mov edx, dword [ebp - 0x120c]
mov byte [edx + 0x29], 1
mov dword [ebp - 4], 4
test esi, esi
jne 0x51aa82
push ebx
call fcn.0053a1b0
add esp, 4
test al, al
je 0x51aa0c
push 0x626720
push 0x1aa
push str.fts::FilesList
push str.Directory_name_cannot_be_empty
push esi
push esi
push esi
push 1
call ebx
add esp, 0x20
lea eax, [ebp - 0x1210]
push eax
mov esi, dword [ebp - 0x1218]
mov ecx, esi
call fcn.00435040
mov byte [ebp - 4], 4
mov dword [ebp - 0x121c], 1
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x120c]
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [ebp - 0x1214]
push ecx
lea ecx, [ebp - 0x1210]
call fcn.00434ac0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x120c]
push edx
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 ebx, 0xf
mov dword [ebp - 0x1038], ebx
mov dword [ebp - 0x103c], 0
mov byte [ebp - 0x104c], 0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51aaa3
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x104c]
call fcn.00422130
mov byte [ebp - 4], 8
test edi, edi
je 0x51aad3
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51aac6
sub eax, edx
mov edx, edi
jne 0x51aad8
mov edx, 0x5d91b4
mov dword [ebp - 0x1054], ebx
mov dword [ebp - 0x1058], 0
mov byte [ebp - 0x1068], 0
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51aaf4
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x1068]
call fcn.00422130
mov byte [ebp - 4], 9
test edi, edi
je 0x51ad12
mov eax, edi
lea edx, [eax + 1]
jmp 0x51ab20
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51ab20
sub eax, edx
je 0x51ad12
push 0x3b
lea eax, [ebp - 0x1068]
push eax
lea ecx, [ebp - 0x1244]
push ecx
call fcn.0051a8d0
add esp, 0xc
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x1240]
sub ecx, dword [ebp - 0x1244]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp esi, 1
jbe 0x51acfc
push 0
push 0x5e8923
lea ecx, [ebp - 0x1068]
call fcn.00422130
test esi, esi
je 0x51acfc
xor ebx, ebx
mov dword [ebp - 0x1200], esi
xor esi, esi
jmp 0x51aba0
mov ecx, dword [ebp - 0x1244]
lea ecx, [ecx + ebx]
push 2
push esi
lea eax, [ebp - 0x1030]
push eax
call fcn.00433ad0
mov byte [ebp - 4], 0xb
mov edi, dword [ebp - 0x1020]
cmp edi, 2
mov eax, edi
jb 0x51abce
mov eax, 2
cmp dword [ebp - 0x101c], 0x10
mov ecx, dword [ebp - 0x1030]
jae 0x51abe3
lea ecx, [ebp - 0x1030]
push eax
push 0x5d92a8
push ecx
call fcn.0041faf0
add esp, 0xc
cmp eax, esi
jne 0x51ac0a
cmp edi, 2
jae 0x51ac00
or eax, 0xffffffff
jmp 0x51ac08
xor eax, eax
cmp edi, 2
setne al
cmp eax, esi
sete al
test al, al
sete al
test al, al
je 0x51ac33
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x101c], 0x10
jb 0x51acd6
mov ecx, dword [ebp - 0x1030]
push ecx
jmp 0x51acce
mov eax, dword [ebp - 0x1244]
add eax, ebx
cmp dword [eax + 0x10], 3
jae 0x51ac4e
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x101c], 0x10
jmp 0x51acc5
cmp dword [ebp - 0x1058], esi
mov ecx, 0x5e8923
je 0x51ac60
mov ecx, 0x5be230
push eax
push ecx
lea ecx, [ebp - 0x1084]
push ecx
call fcn.00473150
add esp, 0xc
mov byte [ebp - 4], 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x1068]
call fcn.00418890
mov byte [ebp - 4], 0xb
mov edi, 0x10
cmp dword [ebp - 0x1070], edi
jb 0x51aca4
mov edx, dword [ebp - 0x1084]
push edx
call fcn.00558723
add esp, 4
mov dword [ebp - 0x1070], 0xf
mov dword [ebp - 0x1074], esi
mov byte [ebp - 0x1084], 0
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x101c], edi
jb 0x51acd6
mov eax, dword [ebp - 0x1030]
push eax
call fcn.00558723
add esp, 4
mov dword [ebp - 0x101c], 0xf
mov dword [ebp - 0x1020], esi
mov byte [ebp - 0x1030], 0
add ebx, 0x1c
dec dword [ebp - 0x1200]
jne 0x51aba0
mov ebx, 0x10
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1244]
call fcn.00454ed0
jmp 0x51ad17
mov ebx, 0x10
push 0x3b
lea ecx, [ebp - 0x1068]
push ecx
lea edx, [ebp - 0x122c]
push edx
call fcn.0051a8d0
add esp, 0xc
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x1228]
sub ecx, dword [ebp - 0x122c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1200], eax
mov byte [ebp - 4], 0xe
xor edi, edi
mov dword [ebp - 0x1230], edi
cmp edi, eax
jae 0x51af6e
lea eax, [ebp - 0x104c]
push eax
lea ecx, [ebp - 0x10a0]
push ecx
call fcn.005168b0
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x104c]
cmp edx, esi
je 0x51ae1c
cmp dword [ebp - 0x1038], ebx
jb 0x51adad
mov eax, dword [ebp - 0x104c]
push eax
call fcn.00558723
add esp, 4
mov dword [ebp - 0x1038], 0xf
mov dword [ebp - 0x103c], 0
mov byte [ebp - 0x104c], 0
cmp dword [esi + 0x14], ebx
jae 0x51ade4
mov eax, dword [esi + 0x10]
inc eax
push eax
push esi
lea ecx, [ebp - 0x104c]
push ecx
call fcn.005596c0
add esp, 0xc
jmp 0x51adf2
mov edx, dword [esi]
mov dword [ebp - 0x104c], edx
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x103c], eax
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x1038], ecx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], ebx
jb 0x51ae19
mov esi, dword [esi]
mov byte [esi], 0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x10a0]
call fcn.00421b10
lea edx, [edi*8]
sub edx, edi
mov eax, dword [ebp - 0x122c]
lea eax, [eax + edx*4]
push eax
lea ecx, [ebp - 0x1030]
call fcn.0040f1c0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x1030]
push ecx
lea edx, [ebp - 0x104c]
push edx
lea eax, [ebp - 0x1084]
push eax
call fcn.004efcd0
add esp, 0xc
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x1020], 1
jbe 0x51aebe
push 1
lea ecx, [ebp - 0x1030]
call fcn.004d3cd0
cmp byte [eax], 0x2e
jne 0x51aebe
push 0xffffffffffffffff
push 2
lea ecx, [ebp - 0x10bc]
push ecx
lea ecx, [ebp - 0x1030]
call fcn.00433ad0
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x1030]
call fcn.0041fd30
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x10bc]
call fcn.00421b10
cmp dword [ebp - 0x1070], ebx
mov eax, dword [ebp - 0x1084]
jae 0x51aed2
lea eax, [ebp - 0x1084]
lea edx, [ebp - 0x11fc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x51af3e
jmp 0x51aef0
mov eax, dword [ebp - 0x11fc]
test ebx, eax
jne 0x51af25
test al, 0x20
je 0x51af25
push 0
lea eax, [ebp - 0x11d0]
push eax
lea ecx, [ebp - 0x1210]
call fcn.005166f0
push eax
lea ecx, [ebp - 0x123c]
push ecx
lea ecx, [ebp - 0x1210]
call fcn.00434830
lea edx, [ebp - 0x11fc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x51aef0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x1084]
call fcn.00421b10
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x1030]
call fcn.00421b10
inc edi
mov dword [ebp - 0x1230], edi
mov eax, dword [ebp - 0x1200]
jmp 0x51ad64
mov dword [ebp - 4], 0xd
xor ebx, ebx
lea edx, [ebp - 0x1210]
push edx
mov ecx, dword [ebp - 0x1218]
call fcn.00435040
mov byte [ebp - 4], 0xd
or dword [ebp - 0x121c], 1
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x122c]
cmp esi, ebx
je 0x51afd6
mov edi, dword [ebp - 0x1228]
cmp esi, edi
je 0x51afcd
lea esp, [esp]
push esi
lea eax, [ebp - 0x1220]
push eax
call fcn.00433f00
add esp, 8
add esi, 0x1c
cmp esi, edi
jne 0x51afb0
mov esi, dword [ebp - 0x122c]
push esi
call fcn.00558723
add esp, 4
mov dword [ebp - 0x122c], ebx
mov dword [ebp - 0x1228], ebx
mov dword [ebp - 0x1224], ebx
mov byte [ebp - 4], 8
mov edi, 0x10
cmp dword [ebp - 0x1054], edi
jb 0x51b008
mov ecx, dword [ebp - 0x1068]
push ecx
call fcn.00558723
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x1054], esi
mov dword [ebp - 0x1058], ebx
mov byte [ebp - 0x1068], 0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x1038], edi
jb 0x51b03b
mov edx, dword [ebp - 0x104c]
push edx
call fcn.00558723
add esp, 4
mov dword [ebp - 0x1038], esi
mov dword [ebp - 0x103c], ebx
mov byte [ebp - 0x104c], 0
mov dword [ebp - 4], 0x16
mov eax, dword [ebp - 0x120c]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [ebp - 0x1214]
push eax
lea ecx, [ebp - 0x1210]
call fcn.00434ac0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x120c]
push ecx
call fcn.00558723
add esp, 4
mov eax, dword [ebp - 0x1218]
jmp 0x51aa66
mov dword [ebp - 0x1200], 0
lea edx, [ebp - 0x1200]
push edx
lea ecx, [ebp - 0x1250]
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 eax, [ebp - 0x1250]
push eax
call fcn.00559aa1
int3