Function at 0x5bb790
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x627968
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
cmp esi, edi
jne 0x5bb7d0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.005bb6c0
cmp dword [0x6edb0c], edi
jne 0x5bb82e
mov eax, dword [0x6edb08]
cmp eax, edi
jne 0x5bb7fa
push 0x6e0a38
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [0x6edb08], eax
je 0x5bb80b
push 0x6e0a24
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6edb0c], eax
cmp dword [0x6edb0c], edi
jne 0x5bb82e
cmp dword [0x6edb00], edi
jne 0x5bb82e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push edi
push 3
push edi
push 3
push bind
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, eax
cmp edx, 0xffffffff
mov dword [ebp - 0x24], edx
jne 0x5bb85e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x6e7b6c]
mov bl, 1
mov byte [ebp + 0xb], bl
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
xor esi, esi
lea ecx, [ebp - 0x18]
stosb byte es:[edi], al
push esi
push ecx
lea eax, [ebp - 0x12c]
push 0x100
push eax
push edx
mov dword [ebp - 0x1c], 0x100
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x5bbb09
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
jbe 0x5bbb09
mov eax, dword [0x6edb0c]
cmp eax, esi
je 0x5bb985
lea edx, [ebp - 0x28]
push esi
push edx
push esi
push esi
push ecx
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], bl
push ecx
push esi
push esi
mov dword [ebp - 0x28], esi
call eax
cmp eax, esi
jne 0x5bb982
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x5bb982
xor bl, bl
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp + 0xb], bl
call fcn.005faa09
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x14]
mov edi, 1
push 0x6bf8fc
push eax
mov dword [ebp - 4], edi
call fcn.005de4a0
add esp, 8
test eax, eax
je 0x5bb96b
mov ecx, dword [ebp - 0x14]
push 0x6bed10
push ecx
call fcn.005de4a0
add esp, 8
test eax, eax
je 0x5bb96b
mov edx, dword [ebp - 0x14]
push 0x6bf954
push edx
call fcn.005de4a0
add esp, 8
test eax, eax
je 0x5bb96b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
mov ecx, 0x6ec6c0
call fcn.00430c30
cmp eax, esi
je 0x5bb982
mov dword [ebp - 0x20], edi
jmp 0x5bb982
cmp dword [0x6edb00], esi
je 0x5bb982
mov bl, 1
jmp 0x5bb982
mov dword [ebp - 4], esi
cmp dword [0x6edb00], esi
je 0x5bbb09
test bl, bl
je 0x5bbb09
mov ecx, 0xa8
xor eax, eax
lea edi, [ebp - 0x3cc]
lea edx, [ebp + 8]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x24]
push edx
push eax
mov byte [ebp - 0x3cc], 1
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5bb9d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5bba75
mov ecx, dword [ebp + 8]
push 1
push 0
push 0
push ecx
call fcn.005e09d0
xor ecx, ecx
add eax, esi
adc edx, ecx
js 0x5bba75
jg 0x5bb9f8
cmp eax, 0x100
jbe 0x5bba75
test edx, edx
jg 0x5bba0a
jl 0x5bba05
cmp eax, 0x2710
jae 0x5bba0a
mov dword [ebp - 0x1c], eax
jmp 0x5bba11
mov dword [ebp - 0x1c], 0x2710
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005f6c5c
mov esi, eax
add esp, 4
test esi, esi
je 0x5bba75
mov ebx, dword [ebp - 0x24]
push 0
push 0
push 0
push ebx
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push 0
push eax
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5bba6a
mov eax, dword [ebp - 0x18]
test eax, eax
jbe 0x5bba6a
lea edx, [ebp - 0x3cc]
push edx
push 0
push eax
push esi
call dword [0x6edb00]
mov edi, eax
push esi
call fcn.005f6c85
add esp, 4
jmp 0x5bba91
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x3cc]
push eax
push 0
lea edx, [ebp - 0x12c]
push ecx
push edx
call dword [0x6edb00]
mov edi, eax
cmp edi, 3
jne 0x5bbaa1
cmp dword [ebp - 0x1c], 0x1388
jb 0x5bbb09
jmp 0x5bbaab
cmp edi, 1
je 0x5bbaab
cmp edi, 2
jne 0x5bbb09
lea edi, [ebp - 0x29f]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5bbad7
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x29f]
push eax
push 0x6bc090
push ecx
call fcn.005f368b
add esp, 0xc
jmp 0x5bbb02
lea edi, [ebp - 0x303]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5bbb09
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x303]
push edx
push eax
mov ecx, 0x6ec6c0
call fcn.00430c30
test eax, eax
je 0x5bbb09
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.005fa859
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret