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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6fc52c
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x766480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
call fcn.006b8280
push 0
push 0x80
push 3
push 0
push 1
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x3c], edi
cmp edi, 0xffffffff
jne 0x6b85ad
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x40], edi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.006dff04
mov ebx, eax
add esp, 4
mov dword [ebp - 0x24], ebx
test ebx, ebx
jne 0x6b85eb
xor bl, bl
jmp 0x6b885e
mov dword [ebp - 0x44], ebx
push 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6b884e
mov edi, dword [ebx]
add edi, 8
lea eax, [edi + ebx]
mov eax, dword [eax - 4]
push eax
mov dword [ebp - 0x14], eax
call fcn.006dff04
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x6b884e
mov dword [ebp - 0x38], ebx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
mov eax, dword [ebp - 0x24]
sub esi, edi
push ebx
add eax, edi
push esi
push eax
call fcn.006a6140
mov ecx, dword [0x76a53c]
add esp, 0x10
push 3
push 0
push dword [ebp - 0x14]
push ebx
call fcn.006b1330
mov eax, dword [ebx]
mov edx, 0x200
mov dword [ebp - 0x20], eax
add ebx, 4
mov eax, dword [ebp - 0x10]
add eax, 0x10
nop dword [eax]
mov esi, ebx
mov edi, eax
mov ecx, 0x200
add ebx, 0x800
add eax, 0x800
rep movsd dword es:[edi], dword [esi]
sub edx, 1
jne 0x6b8670
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x20], edx
jle 0x6b8830
mov eax, dword [ebx]
push 0x34
mov dword [ebp - 0x18], eax
call fcn.006df8c3
mov edi, eax
add esp, 4
mov dword [ebp - 0x48], edi
mov byte [ebp - 4], 3
test edi, edi
je 0x6b86d5
push 0xc
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.006df8c3
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0x2c], eax
jmp 0x6b86d7
xor edi, edi
lea esi, [ebx + 4]
mov byte [ebp - 4], 2
add ebx, 0x3c
test edi, edi
je 0x6b883f
test esi, esi
je 0x6b883f
mov eax, dword [esi + 0x20]
mov edx, edi
mov dword [edi + 0x20], eax
mov ecx, esi
sub edx, esi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x6b8700
cmp dword [ebp - 0x18], 0
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], 0
mov dword [ebp + 8], 0
jle 0x6b8792
lea esi, [edi + 0x2c]
nop word [eax + eax]
mov eax, dword [esi]
mov dword [ebp - 0x30], ebx
add ebx, 4
cmp dword [esi + 4], 0x15555555
mov dword [ebp - 0x34], eax
je 0x6b887f
mov dword [ebp - 0x50], esi
push 0xc
mov byte [ebp - 4], 4
mov dword [ebp - 0x4c], 0
call fcn.006df8c3
mov ecx, dword [ebp - 0x30]
add esp, 4
mov edx, dword [ebp - 0x34]
mov byte [ebp - 4], 2
mov dword [ebp - 0x4c], 0
mov ecx, dword [ecx]
mov dword [eax + 8], ecx
inc dword [esi + 4]
mov ecx, dword [edx + 4]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [edx + 4], eax
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
inc ecx
mov dword [ebp + 8], ecx
cmp ecx, dword [ebp - 0x18]
jl 0x6b8730
mov esi, dword [edi + 0x20]
lea eax, [ebp - 0x58]
mov ecx, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x78]
mov dword [ebp + 8], esi
push eax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], edi
call fcn.00495da0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x6c], xmm0
cmp byte [eax + 0xd], 0
jne 0x6b87c5
cmp esi, dword [eax + 0x10]
jae 0x6b8820
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0xaaaaaaa
je 0x6b8889
mov esi, dword [eax]
mov dword [ebp - 0x60], eax
push 0x18
mov byte [ebp - 4], 5
mov dword [ebp - 0x5c], 0
call fcn.006df8c3
mov ecx, dword [ebp + 8]
add esp, 4
mov byte [ebp - 4], 2
mov dword [ebp - 0x5c], 0
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp - 0x68]
mov dword [eax + 0x14], edi
push dword [ebp - 0x6c]
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + 0xc], 0
call fcn.00451330
mov esi, dword [ebp - 0x1c]
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, dword [ebp - 0x20]
jl 0x6b8697
push dword [ebp - 0x38]
mov bl, 1
call fcn.006dfeff
add esp, 4
jmp 0x6b8850
push dword [ebp - 0x38]
xor bl, bl
call fcn.006dfeff
add esp, 4
jmp 0x6b8850
xor bl, bl
push dword [ebp - 0x24]
call fcn.006dfeff
mov edi, dword [ebp - 0x3c]
add esp, 4
test edi, edi
je 0x6b8869
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.list_too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__
call fcn.00451520
int3