Function at 0x47772c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x477734
push ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x477a9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0040e994
xor edx, edx
push ebp
push 0x477a75
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x39], 0
je 0x477779
call fcn.0040421c
jmp 0x477a7c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3a], 0
jne 0x47778c
call fcn.0040421c
jmp 0x477a7c
mov eax, dword [ebp - 4]
push dword [eax + 4]
mov eax, dword [ebp - 4]
push dword [eax + 0x35]
push 0x477ab4
push 0x477ac0
push 0x477ab4
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x477ad4
lea eax, [ebp - 8]
mov edx, 7
call fcn.00404b58
mov edx, dword [ebp - 8]
mov eax, dword [0x483f48]
call fcn.00478f64
test al, al
jne 0x477825
mov eax, dword [ebp - 8]
call fcn.004092fc
test al, al
jne 0x477825
mov eax, dword [ebp - 4]
push dword [eax + 4]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x35]
mov ecx, 2
mov edx, 1
call fcn.00404cf8
push dword [ebp - 0x1c]
push 0x477ab4
push 0x477ac0
push 0x477ab4
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x477ad4
lea eax, [ebp - 8]
mov edx, 7
call fcn.00404b58
mov edx, dword [ebp - 8]
mov eax, dword [0x483f48]
call fcn.00478f64
test al, al
jne 0x477853
mov eax, dword [ebp - 8]
call fcn.004092fc
test al, al
jne 0x477853
mov eax, dword [ebp - 4]
mov byte [eax + 0x3a], 0
call fcn.0040421c
jmp 0x477a7c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [0x483f48]
call fcn.00479010
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x1d], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x21], 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 - 8]
call fcn.00404c98
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x25], ebx
cmp ebx, 0xffffffff
jne 0x4778e4
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov edx, 0x477ae0
call fcn.00404ae4
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x407c38]
call fcn.0040d12c
call fcn.00404170
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x25]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x29], ebx
test ebx, ebx
jne 0x47792a
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 8]
mov edx, 0x477afc
call fcn.00404ae4
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x407c38]
call fcn.0040d12c
call fcn.00404170
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 - 4]
mov eax, dword [eax + 0x29]
push eax
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x2d], ebx
test ebx, ebx
jne 0x47798e
push 0x477b28
push dword [ebp - 8]
push 0x477b44
lea eax, [ebp - 0x2c]
call fcn.004776a8
push dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00404b58
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x407c38]
call fcn.0040d12c
call fcn.00404170
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1d]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x2d]
mov edx, dword [ebp - 4]
mov dword [edx + 0x31], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x39], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x31]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.004773a8
cmp eax, 0x950412de
je 0x4779f0
cmp eax, 0xde120495
je 0x4779f0
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 8]
mov edx, 0x477b64
call fcn.00404ae4
mov ecx, dword [ebp - 0x30]
mov dl, 1
mov eax, dword [0x407c38]
call fcn.0040d12c
call fcn.00404170
cmp eax, 0xde120495
sete al
mov edx, dword [ebp - 4]
mov byte [edx + 0x10], al
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x31]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.004773a8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x31]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.004773a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x11], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x31]
mov ecx, 0xc
mov eax, dword [ebp - 4]
call fcn.004773a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x15], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x31]
mov ecx, 0x10
mov eax, dword [ebp - 4]
call fcn.004773a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x19], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477a7c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0040ea30
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477aa6
lea eax, [ebp - 0x30]
mov edx, 6
call fcn.004047fc
lea eax, [ebp - 8]
call fcn.004047d8
ret