Function at 0x45c0b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x110
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
push edi
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov al, byte [0x52aaf6]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
test al, al
lea edx, [esp + 0x1c]
je 0x45c0f8
push 0x52a8e8
lea eax, [esp + 0x20]
push edx
push eax
jmp 0x45c103
lea ecx, [esp + 0x1c]
push str.Cheat
push ecx
push edx
call esi
mov ecx, dword [0x517ffc]
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call esi
lea eax, [esp + 0x1c]
push str..cht
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionA]
push ebx
push 0x80
push 3
push ebx
push ebx
lea ecx, [esp + 0x30]
push bind
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x45c486
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x10]
push ebx
mov ebp, 4
push edx
lea eax, [esp + 0x1c]
push ebp
push eax
push esi
mov dword [esp + 0x28], ebx
call edi
test eax, eax
je 0x45c47f
cmp dword [esp + 0x10], ebp
jne 0x45c47f
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x45c289
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x1c]
push ebp
push edx
push esi
call edi
cmp dword [esp + 0x10], ebp
je 0x45c1bb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov dword [0x52023c], ebx
pop ebp
pop ebx
add esp, 0x110
ret
push ebx
push ebx
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x45c47f
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
cmp ecx, ebx
jbe 0x45c271
mov ebx, 0x5181f0
lea ebp, [ebx - 4]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [ebp - 0x24]
push 0x11
push ecx
push esi
call edi
cmp dword [esp + 0x10], 0x11
jne 0x45c47f
lea edx, [esp + 0x10]
push 0
push edx
push 4
push ebp
push esi
call edi
cmp dword [esp + 0x10], 4
jne 0x45c47f
lea eax, [esp + 0x10]
push 0
mov ebp, 1
push eax
push ebp
push ebx
push esi
mov dword [ebx], 0
call edi
cmp dword [esp + 0x10], ebp
jne 0x45c47f
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [ebx + 0x10]
push 2
push edx
push esi
call edi
cmp dword [esp + 0x10], 2
jne 0x45c47f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x14], ebp
inc eax
add ebx, 0x40
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x45c1e4
push esi
mov dword [0x52023c], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
cmp eax, 1
jne 0x45c3a7
lea eax, [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x1c]
push ebp
push ecx
push esi
call edi
cmp dword [esp + 0x10], ebp
je 0x45c2bf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov dword [0x52023c], ebx
pop ebp
pop ebx
add esp, 0x110
ret
push ebx
push ebx
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x45c47f
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
cmp eax, ebx
jbe 0x45c47a
mov ebx, 0x518204
lea ebp, [ebx - 0x14]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [ebp - 0x28]
push 0x24
push eax
push esi
call edi
cmp dword [esp + 0x10], 0x24
jne 0x45c47f
lea ecx, [esp + 0x10]
push 0
push ecx
lea eax, [ebp - 4]
push 4
push eax
push esi
call edi
cmp dword [esp + 0x10], 4
jne 0x45c47f
lea edx, [esp + 0x10]
push 0
push edx
push 4
push ebp
push esi
mov dword [ebp], 0
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [ebp + 0x10]
push 1
push ecx
push esi
call edi
lea edx, [esp + 0x10]
push 0
push edx
add ebp, 0x11
push 1
push ebp
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
push 1
push ebx
push esi
call edi
lea ecx, [esp + 0x10]
push 0
push ecx
push 1
push ebx
push esi
call edi
mov eax, dword [ebx]
cmp eax, 2
jne 0x45c37e
mov dword [ebx], 4
jmp 0x45c38a
cmp eax, 3
jne 0x45c387
mov dword [ebx], eax
jmp 0x45c38a
inc eax
mov dword [ebx], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
inc ecx
add ebx, 0x40
cmp ecx, eax
mov dword [esp + 0x18], ecx
jb 0x45c2e8
jmp 0x45c47a
cmp eax, 2
jne 0x45c486
lea edx, [esp + 0x10]
push ebx
push edx
lea eax, [esp + 0x1c]
push ebp
push eax
push esi
call edi
cmp dword [esp + 0x10], ebp
je 0x45c3dd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov dword [0x52023c], ebx
pop ebp
pop ebx
add esp, 0x110
ret
push ebx
push ebx
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x45c47f
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
cmp eax, ebx
jbe 0x45c47a
mov ebp, 0x5181f8
lea ecx, [ebp - 0x30]
push esi
push ecx
call fcn.0045be00
add esp, 8
test eax, eax
je 0x45c47f
mov eax, dword [ebp]
test eax, eax
je 0x45c466
shl eax, 6
push eax
call fcn.0048ac32
mov ecx, dword [ebp]
mov edi, eax
shl ecx, 6
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebp + 4], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp]
xor edi, edi
test eax, eax
jbe 0x45c466
xor ebx, ebx
mov eax, dword [ebp + 4]
push esi
add eax, ebx
push eax
call fcn.0045be00
mov eax, dword [ebp]
add esp, 8
inc edi
add ebx, 0x40
cmp edi, eax
jb 0x45c44c
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
inc ecx
add ebp, 0x40
cmp ecx, eax
mov dword [esp + 0x18], ecx
jb 0x45c402
mov dword [0x52023c], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret