Function at 0x40d6f0
Capabilities:
Read file via mapping

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x11c
mov edi, ecx
lea ebx, [edi + 0x20]
mov eax, ebx
call fcn.0040d960
mov esi, eax
push esi
call fcn.004212f0
add esp, 0xfffffff4
mov ecx, edi
mov byte [esi + eax - 4], 0
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.0040d9c0
lea ebx, [esp + 0x18]
push 0x408356
push ebx
call fcn.004213c0
push esi
push ebx
call fcn.004213e0
push ebx
call fcn.004212f0
add esp, 0x1c
mov ebp, dword [esp + 0x130]
mov dword [esp + eax + 0x10], ebp
push ebx
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [edi], eax
test eax, eax
je 0x4360c0
push 0x40835f
push ebx
call fcn.004213c0
push esi
push ebx
call fcn.004213e0
push ebx
call fcn.004212f0
add esp, 0x14
mov dword [esp + eax + 0x10], ebp
push ebx
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [edi + 4], eax
test eax, eax
je 0x4360a0
push 0x408370
push ebx
call fcn.004213c0
push esi
push ebx
call fcn.004213e0
push ebx
call fcn.004212f0
add esp, 0x14
mov dword [esp + eax + 0x10], ebp
push ebx
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edx, eax
push 0x100
xor eax, eax
push eax
push eax
push 0xf001f
push edx
mov dword [edi + 8], edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x14], eax
cmp dword [edi + 8], 0
je 0x40d940
test eax, eax
je 0x40d940
push 0x40837c
push ebx
call fcn.004213c0
push 0x408384
push ebx
call fcn.004213e0
push esi
push ebx
call fcn.004213e0
push ebx
call fcn.004212f0
add esp, 0x1c
mov dword [esp + eax + 0x10], ebp
xor eax, eax
push ebx
push 0x41000
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edx, eax
push 0x41000
xor eax, eax
push eax
push eax
push 0xf001f
push edx
mov dword [edi + 0xc], edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x18], eax
cmp dword [edi + 0xc], 0
je 0x40d920
test eax, eax
je 0x40d920
push 0x40837c
push ebx
call fcn.004213c0
push 0x408392
push ebx
call fcn.004213e0
push esi
push ebx
call fcn.004213e0
push ebx
call fcn.004212f0
add esp, 0x1c
mov dword [esp + eax + 0x10], ebp
xor eax, eax
push ebx
push 0x400000
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edx, eax
push 0x400000
xor eax, eax
push eax
push eax
push 0xf001f
push edx
mov dword [edi + 0x10], edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x1c], eax
cmp dword [edi + 0xc], 0
je 0x40d900
cmp dword [edi + 0x18], 0
je 0x40d900
mov eax, dword [edi + 0x14]
mov dword [eax], 0x41000
mov dword [eax + 4], 0x400000
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
add esp, 0x11c
pop ebp
pop ebx
pop edi
pop esi
ret 0xc
push 0x10
push esi
push 0x4083a1
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
dec eax
add esp, 0x11c
pop ebp
pop ebx
pop edi
pop esi
ret 0xc
push 0x10
push esi
push 0x4083bd
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
dec eax
add esp, 0x11c
pop ebp
pop ebx
pop edi
pop esi
ret 0xc
push 0x10
push esi
push 0x4083d8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
dec eax
add esp, 0x11c
pop ebp
pop ebx
pop edi
pop esi
ret 0xc
push 0x10
push esi
push 0x4083f0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
dec eax
add esp, 0x11c
pop ebp
pop ebx
pop edi
pop esi
ret 0xc
push 0x10
push esi
push 0x40840f
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
dec eax
add esp, 0x11c
pop ebp
pop ebx
pop edi
pop esi
ret 0xc