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

Disassembly:
mov eax, 0x10014
call fcn.00458590
mov edx, dword [esp + 0x10024]
push ebx
push ebp
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4526d0
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x14
ja 0x4526d0
mov eax, dword [esp + 0x1002c]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4526d0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x10038]
shr eax, 9
test ecx, ecx
mov dword [esp + 0x1c], eax
jne 0x452465
shr eax, 1
mov dword [esp + 0x1c], eax
mov edi, eax
shr edi, 7
mov ecx, edi
mov edx, edi
shl ecx, 0x10
sub ecx, edi
mov dword [esp + 0x20], edi
shl ecx, 7
add ecx, eax
shl ecx, 9
shr ecx, 9
shl edx, 7
add edx, ecx
mov dword [esp + 0x10], ecx
shl edx, 9
shl eax, 9
cmp eax, edx
jbe 0x45249a
inc ecx
mov dword [esp + 0x10], ecx
mov ebp, dword [esp + 0x10028]
push ebp
call fcn.0044ba50
add esp, 4
test edi, edi
jbe 0x452630
mov dword [esp + 0x14], 0
mov ecx, 0x4000
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10038]
test eax, eax
jne 0x4525d5
cmp esi, dword [esp + 0x1c]
je 0x4525f2
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x2c]
push 0x10000
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x45254e
mov edi, dword [esp + 0x10034]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x45254e
mov ebp, dword [esp + 0x10034]
lea eax, [esp + 0x804c]
sub ebp, eax
mov edi, dword [esp + 0x10034]
lea eax, [esp + edx + 0x804c]
inc edx
mov cl, byte [eax + ebp]
mov byte [eax], cl
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x452525
mov ebp, dword [esp + 0x10028]
mov eax, dword [esp + 0x10030]
lea edx, [esp + 0x24]
push edx
lea ecx, [esi + eax]
push ecx
push 0x80
push ebp
call fcn.0044bb30
add esp, 0x10
add esi, 0x80
test eax, eax
je 0x4526c9
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x4524ba
mov ecx, 0x4000
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x10]
test edi, edi
jbe 0x4526e0
push eax
mov eax, edi
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x28]
shl eax, 9
push edx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10030]
lea edx, [esp + 0x24]
add esi, eax
push edx
push esi
push edi
jmp 0x4526bc
mov eax, dword [esp + 0x1003c]
test eax, eax
jne 0x4524e0
mov eax, dword [esp + 0x1c]
shr eax, 1
cmp esi, eax
jne 0x4524e0
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x2c]
push 0x10000
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10030]
lea eax, [esp + 0x7e24]
push eax
lea edx, [esi + ecx]
push edx
push 0x41
push ebp
call fcn.0044bb30
add esp, 0x10
add esi, 0x41
jmp 0x452572
mov edx, dword [esp + 0x10]
xor eax, eax
shl edx, 9
mov ecx, edx
lea edi, [esp + 0x24]
mov esi, ecx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x1c]
push ecx
push edx
lea edx, [esp + 0x30]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x10034]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4526aa
lea eax, [esp + 0x804c]
sub esi, eax
mov edi, dword [esp + 0x10034]
lea eax, [esp + edx + 0x804c]
inc edx
mov cl, byte [esi + eax]
mov byte [eax], cl
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x452681
mov ebp, dword [esp + 0x10028]
mov eax, dword [esp + 0x10030]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
push eax
push ecx
push ebp
call fcn.0044bb30
add esp, 0x10
test eax, eax
jne 0x4526e0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xe8
pop ebx
add esp, 0x10014
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10014
ret