Function at 0x68023b98
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x68031884]
or dword [ebp - 0xb8], 0xffffffff
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0xbc]
push eax
xor edi, edi
lea eax, [ebp - 0xd0]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 0xb0], 0x54f
push dword [ebp + 8]
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xd0], edi
call fcn.680233db
cmp eax, edi
je 0x68023c0e
mov dword [ebp - 0xb0], eax
jmp 0x68024005
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x68023c13
sub eax, edi
cmp eax, 0x45
jne 0x68023cd9
mov edi, dword [sym.imp._CKERNEL.DLL_MultiByteToWideChar]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push esi
push 2
push eax
call edi
test eax, eax
mov dword [ebp - 0xc8], eax
jne 0x68023c52
call dword [sym.imp._CKERNEL.DLL_GetLastError]
mov dword [ebp - 0xb0], eax
jmp 0x68024003
lea eax, [eax + eax + 2]
push eax
call fcn.68021ec0
test eax, eax
mov dword [ebp - 0xc0], eax
je 0x68023f96
push dword [ebp - 0xc8]
push eax
push 0xffffffffffffffff
push esi
push 2
push 0
call edi
test eax, eax
jne 0x68023c89
call dword [sym.imp._CKERNEL.DLL_GetLastError]
jmp 0x68023fdf
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0xc0]
push dword [ebp - 0xbc]
push 0x80000000
push dword [ebp + 0x10]
call fcn.680237c4
test eax, eax
jne 0x68023cd9
push dword [ebp - 0xc0]
lea eax, [ebx + 0x44]
push eax
call sub._Cmvrt.DLL_wcscpy
pop ecx
pop ecx
xor edi, edi
test byte [ebp + 0x14], 8
je 0x68023d6d
mov dword [ebp - 0xb0], 0x8009000f
jmp 0x68023fef
lea edi, [ebx + 0x44]
push edi
push esi
call fcn.680225f3
test eax, eax
jne 0x68023fdf
lea eax, [ebp - 0xb8]
push eax
push edi
push dword [ebp - 0xbc]
push 0x80000000
push dword [ebp + 0x10]
call fcn.680237c4
xor edi, edi
cmp eax, edi
je 0x68023cc0
cmp eax, 5
je 0x68023cc0
mov ecx, 0x80090016
cmp eax, ecx
jne 0x68023cc0
cmp dword [ebp + 0x10], edi
jne 0x68023d62
cmp dword [ebp - 0xd0], edi
jne 0x68023d62
push 0x2a
pop ecx
xor eax, eax
lea edi, [ebp - 0xac]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xac]
push eax
push esi
push dword [ebp - 0xbc]
call fcn.68023892
test eax, eax
jne 0x68023fdf
lea eax, [ebp - 0xac]
push eax
jmp 0x68023cb3
mov dword [ebp - 0xb0], ecx
jmp 0x68023fef
push edi
push dword [ebp - 0xb8]
call dword [sym.imp._CKERNEL.DLL_GetFileSize]
cmp eax, 0xffffffff
je 0x68023c7e
cmp eax, 0x1c
jb 0x68023fef
push edi
push edi
push edi
push 2
push edi
push dword [ebp - 0xb8]
call dword [sym.imp._CKERNEL.DLL_CreateFileMappingA]
cmp eax, edi
mov dword [ebp - 0xc4], eax
je 0x68023c7e
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp._CKERNEL.DLL_MapViewOfFile]
cmp eax, edi
mov dword [ebp - 0xb4], eax
je 0x68023c7e
mov eax, dword [eax]
cmp eax, 2
mov dword [ebx], eax
jne 0x68023fef
cmp dword [ebx + 0x20], 0
mov eax, dword [ebp - 0xb4]
lea edx, [ebx + 4]
push 7
lea esi, [eax + 4]
pop ecx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
je 0x68023e00
cmp dword [edx], 0
je 0x68023e00
mov dword [ebp - 0xb0], 0x80090022
jmp 0x68023fef
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
push dword [ebx + 8]
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0xc8], eax
call fcn.68021ec0
test eax, eax
mov dword [ebx + 0x40], eax
je 0x68023f96
mov ecx, dword [ebx + 8]
mov esi, dword [ebp - 0xb4]
mov edi, eax
mov eax, ecx
shr ecx, 2
add esi, 0x28
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 8]
push dword [ebx + 0x1c]
add esi, 0x28
mov dword [ebp - 0xb0], esi
call fcn.68021ec0
test eax, eax
mov dword [ebx + 0x3c], eax
je 0x68023f96
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebp - 0xb4]
mov edi, eax
mov eax, ecx
add esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0xb0]
add esi, dword [ebx + 0x1c]
mov eax, dword [ebx + 0xc]
test eax, eax
mov dword [ebp - 0xb0], esi
je 0x68023f3b
cmp dword [ebx + 0x10], 0
je 0x68023f3b
push eax
call fcn.68021ec0
test eax, eax
mov dword [ebx + 0x24], eax
je 0x68023f96
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 0xb4]
mov edi, eax
mov eax, ecx
add esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0xb0]
add esi, dword [ebx + 0xc]
push dword [ebx + 0x10]
mov dword [ebp - 0xb0], esi
call fcn.68021ec0
test eax, eax
mov dword [ebx + 0x28], eax
je 0x68023f96
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebp - 0xb4]
mov edi, eax
mov eax, ecx
add esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0xb0]
add esi, dword [ebx + 0x10]
lea eax, [ebx + 0x2c]
push eax
push dword [ebp - 0xcc]
lea eax, [esi + edx]
push eax
push dword [ebp + 0x10]
call fcn.680227ca
test eax, eax
jne 0x68023fdf
add esi, dword [ebp - 0xcc]
mov dword [ebp - 0xb0], esi
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x68023fe7
cmp dword [ebx + 0x18], 0
je 0x68023fe7
push eax
call fcn.68021ec0
test eax, eax
mov dword [ebx + 0x30], eax
je 0x68023f96
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebp - 0xb4]
mov edi, eax
mov eax, ecx
add esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0xb0]
add esi, dword [ebx + 0x14]
push dword [ebx + 0x18]
mov dword [ebp - 0xb0], esi
call fcn.68021ec0
test eax, eax
mov dword [ebx + 0x34], eax
jne 0x68023fa2
mov dword [ebp - 0xb0], 8
jmp 0x68023fef
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebp - 0xb4]
mov edi, eax
mov eax, ecx
shr ecx, 2
add esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0xb0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, dword [ebx + 0x18]
lea ecx, [ebx + 0x38]
push ecx
push dword [ebp - 0xc8]
add eax, edx
push eax
push dword [ebp + 0x10]
call fcn.680227ca
test eax, eax
je 0x68023fe7
mov dword [ebp - 0xb0], eax
jmp 0x68023fef
xor ebx, ebx
mov dword [ebp - 0xb0], ebx
cmp dword [ebp - 0xc0], 0
je 0x68024003
push dword [ebp - 0xc0]
call fcn.68021f03
xor edi, edi
cmp ebx, edi
je 0x6802400f
push ebx
call fcn.68022259
cmp dword [ebp - 0xbc], edi
je 0x68024022
push dword [ebp - 0xbc]
call fcn.68021f03
cmp dword [ebp - 0xb4], edi
je 0x68024036
push dword [ebp - 0xb4]
call dword [sym.imp._CKERNEL.DLL_UnmapViewOfFile]
cmp dword [ebp - 0xc4], edi
mov esi, dword [sym.imp._CKERNEL.DLL_CloseHandle]
je 0x6802404c
push dword [ebp - 0xc4]
call esi
cmp dword [ebp - 0xb8], 0xffffffff
je 0x6802405d
push dword [ebp - 0xb8]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xb0]
pop edi
pop esi
pop ebx
call fcn.68014cb9
leave
ret 0x14