Function at 0x478d60
Capabilities:
Print debug messages
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x4b33f1
mov eax, dword fs:[0]
push eax
sub esp, 0x130
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d0968]
xor eax, esp
push eax
lea eax, [esp + 0x144]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x15c]
push eax
xor edi, edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi], eax
jne 0x478e68
push 1
push 3
lea ecx, [esp + 0x3c]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.00428b70
mov dword [esp + 0x14c], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x154]
push eax
push str._Create_Event_Fail_
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.00420e50
add esp, 8
push eax
call fcn.00420e50
add esp, 8
mov ecx, eax
call fcn.00478c00
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
call fcn.00414bb0
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x478e14
mov eax, dword [eax + 4]
jmp 0x478e17
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esp + 0x30], esi
jb 0x478e31
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004803bd
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0x14c], 0xffffffff
call fcn.00409120
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.0047ec1f
add esp, 4
jmp 0x4790de
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebp, dword [esp + 0x154]
push ebp
push edi
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
cmp eax, edi
mov dword [esi + 4], eax
mov byte [esp + 0x17], 1
jne 0x478fc2
push 0x14
call fcn.004806a4
push 0xc
mov ebx, eax
call fcn.004806a4
add esp, 8
test ebx, ebx
mov edi, eax
je 0x478ede
test edi, edi
je 0x478ede
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x478ede
push 0
push 0
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x478ede
mov dword [edi], 0xc
mov dword [edi + 4], ebx
mov dword [edi + 8], 1
mov ebx, dword [esp + 0x158]
push ebp
push ebx
push 0
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
xor ecx, ecx
cmp eax, ecx
mov dword [esi + 4], eax
jne 0x478fba
push 1
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
push 3
lea ecx, [esp + 0x3c]
call fcn.00428b70
mov dword [esp + 0x14c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Create_FileMapping_Fail_LastError_
lea eax, [esp + 0x44]
push ebp
push eax
call fcn.00420e50
add esp, 8
push eax
call fcn.00420e50
add esp, 8
mov ecx, eax
call fcn.00478c00
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x38]
call fcn.00414bb0
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x478f66
mov eax, dword [eax + 4]
jmp 0x478f69
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esp + 0x30], esi
jb 0x478f83
mov edx, dword [esp + 0x1c]
push edx
call fcn.004803bd
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0x14c], 0xffffffff
call fcn.00409120
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.0047ec1f
add esp, 4
jmp 0x4790de
mov byte [esp + 0x17], cl
xor edi, edi
jmp 0x478fc9
mov ebx, dword [esp + 0x158]
mov ecx, dword [esi + 4]
push edi
push edi
push edi
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 8], eax
jne 0x4790b3
push 1
push 3
lea ecx, [esp + 0xc4]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.00428b70
mov dword [esp + 0x14c], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Get_FileMapping_Buff_Fail_LastError_
lea edx, [esp + 0xcc]
push ebp
push edx
call fcn.00420e50
add esp, 8
push eax
call fcn.00420e50
add esp, 8
mov ecx, eax
call fcn.00478c00
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xc0]
call fcn.00414bb0
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x479051
mov eax, dword [eax + 4]
jmp 0x479054
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esp + 0x30], esi
jb 0x47906e
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004803bd
add esp, 4
lea ecx, [esp + 0x110]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], edi
mov byte [esp + 0x1c], 0
mov dword [esp + 0x14c], 0xffffffff
call fcn.00409120
lea edx, [esp + 0x110]
push edx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0047ec1f
add esp, 4
jmp 0x4790de
cmp byte [esp + 0x17], 0
mov dword [esi + 0xc], ebx
jne 0x4790de
push ebx
push edi
push eax
call fcn.00480820
mov eax, dword [esi + 8]
add esp, 0xc
cmp eax, edi
je 0x4790d5
mov dword [eax], 4
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret 0xc