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

Disassembly:
push 0xffffffffffffffff
push 0x4a9ba1
mov eax, dword fs:[0]
push eax
sub esp, 0x130
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c7894]
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 0x472178
push 1
push 3
lea ecx, [esp + 0x3c]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.00428520
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.00421560
add esp, 8
push eax
call fcn.00421560
add esp, 8
mov ecx, eax
call fcn.00471f10
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
call fcn.0041cc60
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x472124
mov eax, dword [eax + 4]
jmp 0x472127
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esp + 0x30], esi
jb 0x472141
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0047964d
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0x14c], 0xffffffff
call fcn.00416250
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.00477b46
add esp, 4
jmp 0x4723ee
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 0x4722d2
push 0x14
call fcn.00479c61
push 0xc
mov ebx, eax
call fcn.00479c61
add esp, 8
test ebx, ebx
mov edi, eax
je 0x4721ee
test edi, edi
je 0x4721ee
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4721ee
push 0
push 0
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x4721ee
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 0x4722ca
push 1
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
push 3
lea ecx, [esp + 0x3c]
call fcn.00428520
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.00421560
add esp, 8
push eax
call fcn.00421560
add esp, 8
mov ecx, eax
call fcn.00471f10
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x38]
call fcn.0041cc60
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x472276
mov eax, dword [eax + 4]
jmp 0x472279
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esp + 0x30], esi
jb 0x472293
mov edx, dword [esp + 0x1c]
push edx
call fcn.0047964d
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0x14c], 0xffffffff
call fcn.00416250
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.00477b46
add esp, 4
jmp 0x4723ee
mov byte [esp + 0x17], cl
xor edi, edi
jmp 0x4722d9
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 0x4723c3
push 1
push 3
lea ecx, [esp + 0xc4]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.00428520
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.00421560
add esp, 8
push eax
call fcn.00421560
add esp, 8
mov ecx, eax
call fcn.00471f10
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xc0]
call fcn.0041cc60
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x472361
mov eax, dword [eax + 4]
jmp 0x472364
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esp + 0x30], esi
jb 0x47237e
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0047964d
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.00416250
lea edx, [esp + 0x110]
push edx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00477b46
add esp, 4
jmp 0x4723ee
cmp byte [esp + 0x17], 0
mov dword [esi + 0xc], ebx
jne 0x4723ee
push ebx
push edi
push eax
call fcn.00479d70
mov eax, dword [esi + 8]
add esp, 0xc
cmp eax, edi
je 0x4723e5
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