Function at 0x68026050
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2e8
mov eax, dword [0x68031884]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
xor ebx, ebx
stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x13c]
push eax
push ecx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x144], ebx
call dword [sym.imp._CKERNEL.DLL_OpenFile]
cmp eax, 0xffffffff
mov dword [ebp - 0x140], eax
jne 0x680260ac
call dword [sym.imp._CKERNEL.DLL_GetLastError]
mov esi, eax
jmp 0x68026401
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp._CKERNEL.DLL_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x160], eax
jne 0x680260d0
call dword [sym.imp._CKERNEL.DLL_GetLastError]
mov esi, eax
jmp 0x680263e1
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp._CKERNEL.DLL_MapViewOfFile]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x14c], esi
jne 0x680260f3
call dword [sym.imp._CKERNEL.DLL_GetLastError]
jmp 0x680263c2
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x158]
push eax
push 0x680063a8
or esi, 1
push esi
call fcn.68025f32
cmp eax, ebx
jne 0x680263c2
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x150]
push eax
push 0x680063a0
push esi
call fcn.68025f32
cmp eax, ebx
jne 0x680263c2
mov edx, dword [ebp - 0x154]
cmp edx, 8
jb 0x680263c6
mov esi, dword [ebp - 0x158]
mov ebx, dword [esi + 4]
xor eax, eax
cmp dword [esi], 0x100
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x164], ebx
jne 0x680263c6
cmp ebx, dword [ebp + 0xc]
ja 0x680263c6
lea eax, [edx - 8]
cmp eax, 8
jne 0x680263c6
xor eax, eax
push 0x24
pop ecx
lea edi, [ebp - 0xb4]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x14c]
lea ecx, [ebx + eax + 4]
mov eax, dword [ebp - 0x150]
cmp eax, esi
jbe 0x680261de
mov ebx, esi
mov edi, eax
sub edi, esi
mov esi, dword [ebp - 0x14c]
sub ebx, ecx
lea ecx, [ebp - 0x24]
sub esi, eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x150], ecx
lea ecx, [ebp - 0xb4]
sub edi, edx
sub esi, eax
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x148], eax
jmp 0x6802621d
mov edi, esi
mov esi, dword [ebp - 0x14c]
sub esi, dword [ebp - 0x158]
sub edi, eax
mov ebx, eax
mov eax, dword [ebp - 0x148]
sub ebx, ecx
sub edi, eax
mov dword [ebp - 0x15c], eax
lea ecx, [ebp - 0xb4]
lea eax, [ebp - 0x24]
sub esi, edx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x148], edx
add esi, dword [ebp + 0xc]
push 0x680318ec
lea eax, [ebp - 0x2e8]
push eax
call fcn.6801f300
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2e8]
push eax
push dword [ebp - 0x164]
push dword [ebp - 0x140]
call fcn.68025f86
test eax, eax
jne 0x680263c2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x2e8]
push eax
call fcn.68025e87
push 1
push 0
push 4
push dword [ebp - 0x140]
call dword [sym.imp._CKERNEL.DLL_SetFilePointer]
test eax, eax
je 0x680260e8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2e8]
push eax
push ebx
push dword [ebp - 0x140]
call fcn.68025f86
test eax, eax
jne 0x680263c2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x15c]
lea eax, [ebp - 0x2e8]
push dword [ebp - 0x150]
push eax
call fcn.68025e87
mov ebx, dword [sym.imp._CKERNEL.DLL_SetFilePointer]
push 1
push 0
push dword [ebp - 0x15c]
push dword [ebp - 0x140]
call ebx
test eax, eax
je 0x680260e8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2e8]
push eax
push edi
push dword [ebp - 0x140]
call fcn.68025f86
test eax, eax
jne 0x680263c2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x148]
lea eax, [ebp - 0x2e8]
push dword [ebp - 0x154]
push eax
call fcn.68025e87
push 1
push 0
push dword [ebp - 0x148]
push dword [ebp - 0x140]
call ebx
test eax, eax
je 0x680260e8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2e8]
push eax
push esi
push dword [ebp - 0x140]
call fcn.68025f86
test eax, eax
jne 0x680263c2
mov edi, dword [ebp - 0x158]
push 8
pop ecx
add edi, ecx
lea esi, [ebp - 0xc]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x680263b9
sbb eax, eax
sbb eax, 0xffffffff
neg eax
sbb eax, eax
and eax, 0x80090020
mov esi, eax
jmp 0x680263cb
mov esi, 0x80090020
xor ebx, ebx
cmp dword [ebp - 0x14c], ebx
je 0x680263e1
push dword [ebp - 0x14c]
call dword [sym.imp._CKERNEL.DLL_UnmapViewOfFile]
cmp dword [ebp - 0x160], ebx
je 0x680263f5
push dword [ebp - 0x160]
call dword [sym.imp._CKERNEL.DLL_CloseHandle]
push dword [ebp - 0x140]
call dword [sym.imp._CKERNEL.DLL__lclose]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.68014cb9
leave
ret 8