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

Disassembly:
sub esp, 0x124
mov ecx, dword [esp + 0x128]
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x30]
push 0x104
push eax
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 3
push 0
push 1
lea edx, [esp + 0x44]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x6900a96a
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 8
jbe 0x6900a96a
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x6900a96a
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esp + 0x13c]
mov eax, dword [esp + 0x18]
push 0
lea edx, [esi - 8]
push 0
push edx
push eax
mov dword [esp + 0x20], 0
call ebx
lea ecx, [esi - 8]
cmp eax, ecx
jne 0x6900a96a
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x28]
push 8
push eax
push ecx
call ebp
test eax, eax
je 0x6900a96a
cmp dword [esp + 0x10], 8
jne 0x6900a96a
mov eax, dword [esp + 0x24]
test eax, eax
je 0x6900a96a
cmp eax, 0xffffffff
jne 0x6900a623
sub esi, 4
test edi, edi
jle 0x6900a96a
dec edi
jmp 0x6900a5ba
mov eax, dword [esp + 0x20]
mov edx, 0xfffffff8
sub edx, eax
add esi, edx
test edi, edi
jle 0x6900a637
dec edi
jmp 0x6900a5ba
mov eax, dword [esp + 0x18]
push 0
push 0
push esi
push eax
call ebx
cmp eax, esi
jne 0x6900a96a
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add ecx, 0xfff
push 4
and ecx, 0xfffff000
push 0x1000
push ecx
push 0
mov dword [esp + 0x20], 0
call esi
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x28], ebx
je 0x6900a96a
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push 0
push edx
push eax
push ebx
push ecx
call ebp
test eax, eax
je 0x6900a95c
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jne 0x6900a95c
mov eax, dword [esp + 0x24]
cmp ecx, eax
je 0x6900a94d
add eax, 0xfff
push 4
and eax, 0xfffff000
push 0x1000
push eax
push 0
call esi
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x6900a95c
mov edi, dword [esp + 0x24]
xor eax, eax
add edi, ecx
xor edx, edx
cmp ecx, edi
mov esi, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], edi
jae 0x6900a8f9
test edx, edx
jne 0x6900a713
xor eax, eax
mov edx, 8
mov al, byte [esi]
inc esi
mov edi, eax
and edi, 1
dec edx
shr eax, 1
jmp 0x6900a746
cmp edx, 1
jbe 0x6900a722
mov edi, eax
and edi, 1
dec edx
shr eax, 1
jmp 0x6900a746
mov edi, eax
jae 0x6900a744
xor eax, eax
mov ecx, edx
mov al, byte [esi]
add edx, 7
mov ebp, eax
inc esi
shl ebp, cl
mov ecx, 8
sub ecx, edx
and ebp, 1
or edi, ebp
shr eax, cl
jmp 0x6900a746
xor edx, edx
test edi, edi
je 0x6900a874
test edx, edx
jne 0x6900a773
xor eax, eax
mov al, byte [esi]
inc esi
mov ebx, eax
xor eax, eax
mov al, byte [esi]
mov edx, 8
mov edi, eax
inc esi
and edi, 0xf
sub edx, 4
shr eax, 4
jmp 0x6900a7f9
cmp edx, 8
jbe 0x6900a7a1
mov ebx, eax
sub edx, 8
and ebx, 0xff
shr eax, 8
test edx, edx
jne 0x6900a7c3
xor eax, eax
mov edx, 8
mov al, byte [esi]
inc esi
mov edi, eax
sub edx, 4
and edi, 0xf
shr eax, 4
jmp 0x6900a7f9
jae 0x6900a757
mov ebx, eax
xor eax, eax
mov al, byte [esi]
mov ecx, edx
mov edi, eax
inc esi
shl edi, cl
mov ecx, 8
sub ecx, edx
and edi, 0xff
or ebx, edi
shr eax, cl
jmp 0x6900a786
cmp edx, 4
jbe 0x6900a7d5
mov edi, eax
sub edx, 4
and edi, 0xf
shr eax, 4
jmp 0x6900a7f9
mov edi, eax
jae 0x6900a7f7
xor eax, eax
mov ecx, edx
mov al, byte [esi]
add edx, 4
mov ebp, eax
inc esi
shl ebp, cl
mov ecx, 8
sub ecx, edx
and ebp, 0xf
or edi, ebp
shr eax, cl
jmp 0x6900a7f9
xor edx, edx
shl edi, 8
or edi, ebx
inc edi
test edx, edx
mov ebp, edi
jne 0x6900a81c
xor eax, eax
mov edx, 8
mov al, byte [esi]
inc esi
mov ebx, eax
sub edx, 6
and ebx, 0x3f
shr eax, 6
jmp 0x6900a852
cmp edx, 6
jbe 0x6900a82e
mov ebx, eax
sub edx, 6
and ebx, 0x3f
shr eax, 6
jmp 0x6900a852
mov ebx, eax
jae 0x6900a850
xor eax, eax
mov ecx, edx
mov al, byte [esi]
add edx, 2
mov edi, eax
inc esi
shl edi, cl
mov ecx, 8
sub ecx, edx
and edi, 0x3f
or ebx, edi
shr eax, cl
jmp 0x6900a852
xor edx, edx
lea edi, [ebx + 4]
test edi, edi
je 0x6900a8e5
mov ecx, dword [esp + 0x14]
mov ebx, ecx
sub ebx, ebp
inc ecx
dec edi
mov dword [esp + 0x14], ecx
mov bl, byte [ebx]
mov byte [ecx - 1], bl
jne 0x6900a85d
jmp 0x6900a8e5
test edx, edx
jne 0x6900a88f
xor eax, eax
mov edx, 8
mov al, byte [esi]
inc esi
mov edi, eax
sub edx, 5
and edi, 0x1f
shr eax, 5
jmp 0x6900a8c5
cmp edx, 5
jbe 0x6900a8a1
mov edi, eax
sub edx, 5
and edi, 0x1f
shr eax, 5
jmp 0x6900a8c5
mov edi, eax
jae 0x6900a8c3
xor eax, eax
mov ecx, edx
mov al, byte [esi]
add edx, 3
mov ebp, eax
inc esi
shl ebp, cl
mov ecx, 8
sub ecx, edx
and ebp, 0x1f
or edi, ebp
shr eax, cl
jmp 0x6900a8c5
xor edx, edx
inc edi
test edi, edi
je 0x6900a8e9
test edx, edx
jne 0x6900a916
xor eax, eax
mov al, byte [esi]
inc esi
mov ebx, eax
xor edx, edx
mov ecx, dword [esp + 0x14]
mov byte [ecx], bl
inc ecx
dec edi
mov dword [esp + 0x14], ecx
jne 0x6900a8ca
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
cmp edi, ecx
jb 0x6900a6fb
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [esp + 0x140]
mov eax, dword [esp + 0x24]
mov dword [edx], eax
jmp 0x6900a96a
cmp edx, 8
jbe 0x6900a92b
mov ebx, eax
sub edx, 8
and ebx, 0xff
shr eax, 8
jmp 0x6900a8d7
jae 0x6900a8d3
mov ebx, eax
xor eax, eax
mov al, byte [esi]
mov ecx, edx
mov ebp, eax
inc esi
shl ebp, cl
mov ecx, 8
sub ecx, edx
and ebp, 0xff
or ebx, ebp
shr eax, cl
jmp 0x6900a8d7
mov edx, dword [esp + 0x140]
mov dword [esp + 0x1c], ebx
mov dword [edx], eax
jmp 0x6900a96a
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x6900a97d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
add esp, 0x124
ret