Function at 0x5b10640
Capabilities:
Enumerate files on windows
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1d328
mov eax, dword fs:[0]
push eax
sub esp, 0x3f0
mov eax, dword [0x5b920e8]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x3fc], edi
sub esp, 0x1c
mov ecx, esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x3f4], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp + 8]
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push edx
mov word [ecx], ax
call fcn.05a01900
lea esi, [ebp - 0x18c]
call fcn.05b10590
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.05a01900
mov esi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x178], esi
jb 0x5b106de
mov eax, dword [ebp - 0x18c]
push eax
call fcn.05ac7ecf
add esp, 4
xor ecx, ecx
mov dword [edi], ebx
push ebx
mov word [ebp - 0x170], cx
mov edi, 7
push 0x5b6b880
lea ecx, [ebp - 0x170]
mov dword [ebp - 0x3e4], 0x80004005
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x160], ebx
call fcn.05a01370
push 0xffffffffffffffff
mov byte [ebp - 4], 2
push ebx
lea eax, [ebp + 8]
xor edx, edx
push eax
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x128], ebx
mov word [ebp - 0x138], dx
call fcn.05a01900
push 5
mov eax, str..slf
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 3
call fcn.05a01140
mov eax, dword [ebp - 0x138]
cmp dword [ebp - 0x124], esi
jae 0x5b1076a
lea eax, [ebp - 0x138]
lea ecx, [ebp - 0x3dc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x3ec], eax
cmp eax, 0xffffffff
je 0x5b10b72
xor edx, edx
lea eax, [ebp - 0x3b0]
mov word [ebp - 0x154], dx
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x144], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5b107a5
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x3b0]
push eax
lea ecx, [ebp - 0x154]
call fcn.05a01370
mov byte [ebp - 4], 4
call fcn.05aeb8bc
mov esi, eax
mov dword [ebp - 0x3f4], esi
call fcn.05aeb67b
push ebx
lea ecx, [ebp - 0x3e8]
mov edi, eax
call fcn.05aeb9a5
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x5b107f7
inc eax
mov dword [edi + 4], eax
lea ecx, [ebp - 0x3e8]
call fcn.05aeb9cd
push ecx
mov byte [ebp - 4], 5
mov eax, esp
mov dword [ebp - 0x3f8], esp
push ebx
lea ecx, [ebp - 0x3f0]
mov dword [eax], esi
call fcn.05aeb9a5
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x5b10829
inc eax
mov dword [esi + 4], eax
lea ecx, [ebp - 0x3f0]
call fcn.05aeb9cd
lea ecx, [ebp - 0x154]
push ecx
call fcn.05a05c90
add esp, 8
push ebx
lea ecx, [ebp - 0x3e8]
mov byte [ebp - 0x3dd], al
mov byte [ebp - 4], 4
call fcn.05aeb9a5
mov eax, dword [esi + 4]
cmp eax, ebx
jbe 0x5b10869
cmp eax, 0xffffffff
jae 0x5b10869
dec eax
mov dword [esi + 4], eax
mov edi, dword [esi + 4]
neg edi
sbb edi, edi
not edi
lea ecx, [ebp - 0x3e8]
and edi, esi
call fcn.05aeb9cd
cmp edi, ebx
je 0x5b1088d
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
cmp byte [ebp - 0x3dd], bl
je 0x5b108d8
mov edx, dword [ebp - 0x3ec]
lea ecx, [ebp - 0x3dc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x5b108d8
lea eax, [ebp - 0x3b0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5b108b6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x3b0]
push eax
lea ecx, [ebp - 0x154]
call fcn.05a01370
mov ecx, dword [ebp - 0x3ec]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0xffffffffffffffff
push ebx
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x138]
call fcn.05a01900
mov eax, dword [ebp - 0x154]
mov esi, 8
cmp dword [ebp - 0x140], esi
jae 0x5b10910
lea eax, [ebp - 0x154]
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x5b10915
sub ecx, edi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x138]
call fcn.05a01140
mov edx, dword [ebp - 0x154]
cmp dword [ebp - 0x140], esi
jae 0x5b10944
lea edx, [ebp - 0x154]
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5b10950
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x170]
call fcn.05a01370
mov eax, dword [ebp - 0x138]
cmp dword [ebp - 0x124], esi
jae 0x5b10980
lea eax, [ebp - 0x138]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x3f4], edi
cmp edi, 0xffffffff
je 0x5b10b51
push ebx
push edi
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x3f8], ebx
call fcn.05ac8aa1
add esp, 4
push ebx
lea ecx, [ebp - 0x3f8]
push ecx
push esi
push eax
push edi
mov dword [ebp - 0x3e8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5b10b1c
mov eax, dword [ebp - 0x3e8]
lea edx, [ebp - 0x3f0]
push edx
push eax
mov byte [eax + esi], bl
mov dword [ebp - 0x3f0], ebx
call fcn.05a16fe2
add esp, 8
test eax, eax
jne 0x5b10b1c
push 0xff
lea eax, [ebp - 0x11b]
push ebx
push eax
mov dword [ebp - 0x3ec], ebx
mov byte [ebp - 0x11c], bl
call fcn.05acaa80
mov edx, dword [ebp - 0x3f0]
add esp, 0xc
lea ecx, [ebp - 0x3ec]
push ecx
push edx
call fcn.05a17087
add esp, 8
cmp eax, 0x80000014
je 0x5b10a5b
cmp eax, ebx
je 0x5b10a5b
mov dword [ebp - 0x3e4], 1
jmp 0x5b10afe
mov ecx, dword [ebp - 0x3ec]
push 0x100
lea eax, [ebp - 0x11c]
push eax
push str.product_code
push ecx
call fcn.05a17388
add esp, 0x10
cmp eax, ebx
jne 0x5b10afe
lea edx, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x18c]
call fcn.05a05e90
push 5
push ebx
push str.sepsb
lea ecx, [ebp - 0x18c]
call fcn.05a05be0
cmp eax, 0xffffffff
je 0x5b10abd
mov eax, dword [ebp - 0x3fc]
mov dword [eax], 2
mov dword [ebp - 0x3e4], ebx
jmp 0x5b10af3
push 4
push ebx
push str.sepe
lea ecx, [ebp - 0x18c]
call fcn.05a05be0
cmp eax, 0xffffffff
je 0x5b10ae9
mov ecx, dword [ebp - 0x3fc]
mov dword [ecx], 1
mov dword [ebp - 0x3e4], ebx
jmp 0x5b10af3
mov dword [ebp - 0x3e4], 1
lea ecx, [ebp - 0x18c]
call fcn.05a04420
mov edx, dword [ebp - 0x3f0]
push edx
call fcn.05a171b1
mov eax, dword [ebp - 0x3ec]
add esp, 4
push eax
call fcn.05a16f00
add esp, 4
mov ecx, dword [ebp - 0x3e8]
push ecx
call fcn.05ac8aac
add esp, 4
jmp 0x5b10b45
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 8
cmp dword [ebp - 0x140], esi
jb 0x5b10b68
mov edx, dword [ebp - 0x154]
push edx
call fcn.05ac7ecf
add esp, 4
mov edi, 7
mov esi, 8
cmp dword [ebp - 0x124], esi
jb 0x5b10b89
mov eax, dword [ebp - 0x138]
push eax
call fcn.05ac7ecf
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x128], ebx
mov word [ebp - 0x138], cx
cmp dword [ebp - 0x15c], esi
jb 0x5b10bb5
mov edx, dword [ebp - 0x170]
push edx
call fcn.05ac7ecf
add esp, 4
xor eax, eax
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x160], ebx
mov word [ebp - 0x170], ax
cmp dword [ebp + 0x1c], esi
jb 0x5b10bdb
mov ecx, dword [ebp + 8]
push ecx
call fcn.05ac7ecf
add esp, 4
mov eax, dword [ebp - 0x3e4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.05ac7ec0
mov esp, ebp
pop ebp
ret 0x1c