Function at 0x4590ec
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4590f4
push ebx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x45945f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
call fcn.0040db00
xor edx, edx
push ebp
push 0x459435
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
cmp byte [eax + 0x3c], 0
je 0x459139
call fcn.00404728
jmp 0x45943c
mov eax, dword [ebp - 8]
cmp byte [eax + 0x3d], 0
jne 0x45914c
call fcn.00404728
jmp 0x45943c
mov eax, dword [ebp - 8]
push dword [eax + 4]
mov eax, dword [ebp - 8]
push dword [eax + 0x38]
push 0x459474
push 0x459480
push 0x459474
mov eax, dword [ebp - 8]
push dword [eax + 8]
push 0x459494
lea eax, [ebp - 4]
mov edx, 7
call fcn.00404fb8
mov edx, dword [ebp - 4]
mov eax, dword [0x4ce648]
call fcn.0045a904
test al, al
jne 0x4591e5
mov eax, dword [ebp - 4]
call fcn.00409000
test al, al
jne 0x4591e5
mov eax, dword [ebp - 8]
push dword [eax + 4]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
mov ecx, 2
mov edx, 1
call fcn.00405158
push dword [ebp - 0x1c]
push 0x459474
push 0x459480
push 0x459474
mov eax, dword [ebp - 8]
push dword [eax + 8]
push 0x459494
lea eax, [ebp - 4]
mov edx, 7
call fcn.00404fb8
mov edx, dword [ebp - 4]
mov eax, dword [0x4ce648]
call fcn.0045a904
test al, al
jne 0x459213
mov eax, dword [ebp - 4]
call fcn.00409000
test al, al
jne 0x459213
mov eax, dword [ebp - 8]
mov byte [eax + 0x3d], 0
call fcn.00404728
jmp 0x45943c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [0x4ce648]
call fcn.0045a9b8
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x24], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004050f8
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x28], ebx
cmp ebx, 0xffffffff
jne 0x4592a4
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 4]
mov edx, 0x4594a0
call fcn.00404f44
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x407a34]
call fcn.0040c20c
call fcn.0040467c
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x2c], ebx
test ebx, ebx
jne 0x4592ea
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 4]
mov edx, 0x4594bc
call fcn.00404f44
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x407a34]
call fcn.0040c20c
call fcn.0040467c
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
and eax, 0xffffffff
push eax
mov eax, dword [ebp - 0xc]
xor edx, edx
push eax
push 4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x2c]
push eax
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x30], ebx
test ebx, ebx
jne 0x45934e
push 0x4594e8
push dword [ebp - 4]
push 0x459504
lea eax, [ebp - 0x2c]
call fcn.00459068
push dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00404fb8
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x407a34]
call fcn.0040c20c
call fcn.0040467c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
mov edx, dword [ebp - 8]
add eax, dword [edx + 0x30]
mov edx, dword [ebp - 8]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 8]
mov byte [eax + 0x3c], 1
mov eax, dword [ebp - 8]
mov byte [eax + 0x10], 0
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x34]
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.00458d74
cmp eax, 0x950412de
je 0x4593b0
cmp eax, 0xde120495
je 0x4593b0
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 4]
mov edx, 0x459524
call fcn.00404f44
mov ecx, dword [ebp - 0x30]
mov dl, 1
mov eax, dword [0x407a34]
call fcn.0040c20c
call fcn.0040467c
cmp eax, 0xde120495
sete al
mov edx, dword [ebp - 8]
mov byte [edx + 0x10], al
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x34]
mov ecx, 4
mov eax, dword [ebp - 8]
call fcn.00458d74
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x34]
mov ecx, 8
mov eax, dword [ebp - 8]
call fcn.00458d74
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x34]
mov ecx, 0xc
mov eax, dword [ebp - 8]
call fcn.00458d74
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x34]
mov ecx, 0x10
mov eax, dword [ebp - 8]
call fcn.00458d74
mov edx, dword [ebp - 8]
mov dword [edx + 0x1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45943c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
call fcn.0040dbac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459466
lea eax, [ebp - 0x30]
mov edx, 6
call fcn.00404c58
lea eax, [ebp - 4]
call fcn.00404c34
ret