Function at 0x40b720
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x425250
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [ecx + 0x10]
test eax, eax
mov dword [esp + 4], ecx
jne 0x40b759
mov eax, 0x80070015
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0x14
push ebx
push edi
mov edi, dword [esp + 0x38]
test edi, edi
je 0x40b9ff
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x40b9ff
mov eax, dword [0x430b50]
push ebp
push esi
mov ecx, 0x430b50
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov edx, dword [0x430b50]
mov ecx, 0x430b50
mov dword [esp + 0x30], 0
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x3c], eax
mov ebp, dword [esp + 0x38]
push ebp
mov byte [esp + 0x34], 1
call fcn.0041b05a
mov esi, eax
push ebx
add esi, 0xa
call fcn.0041b05a
add esi, eax
lea eax, [esi + esi + 2]
push eax
call fcn.00419b03
mov ebx, eax
mov dword [esp + 0x2c], ebx
push edi
push ebp
push 0x428048
push esi
push ebx
mov byte [esp + 0x50], 2
call fcn.0041b156
push edi
call fcn.0041b05a
mov esi, eax
add esi, 0x1e
lea ecx, [esi + esi + 2]
push ecx
call fcn.00419b03
mov ebp, eax
mov dword [esp + 0x4c], ebp
push edi
mov edi, dword [esp + 0x40]
mov edx, dword [edi + 0x3c]
push edx
push str.Local_shmPeer:_s:_s
push esi
push ebp
call fcn.0041b156
add esp, 0x3c
push ebp
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
jne 0x40b899
push ebp
call fcn.00419fb9
push ebx
call fcn.00419fb9
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b859
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b87f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
pop ebp
pop edi
mov eax, 0x80004005
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0x14
mov dword [esp + 0x38], eax
push 0xff
push 0
push 0
push 4
push eax
mov byte [esp + 0x44], 4
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
mov dword [esp + 0x1c], esi
jne 0x40b8ea
lea ecx, [esp + 0x38]
call fcn.00407a70
push ebp
call fcn.00419fb9
push ebx
call fcn.00419fb9
add esp, 8
lea ecx, [esp + 0x3c]
call fcn.00402430
lea ecx, [esp + 0x10]
call fcn.00402430
jmp 0x40b87f
lea ecx, [esp + 0x40]
call fcn.00402410
push esi
lea ecx, [esp + 0x44]
mov byte [esp + 0x34], 5
call fcn.00409660
mov esi, dword [esp + 0x40]
mov eax, dword [esi - 0xc]
test eax, eax
jl 0x40b92c
push 0x428044
push esi
call fcn.0041af2e
add esp, 8
test eax, eax
je 0x40b92c
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x40b93d
lea eax, [esp + 0x40]
lea esi, [edi + 0x28]
push eax
mov ecx, esi
call fcn.0040a2d0
jmp 0x40b995
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x48]
call fcn.00408c30
lea esi, [edi + 0x28]
push eax
mov ecx, esi
mov byte [esp + 0x34], 6
call fcn.0040b250
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 5
call fcn.00402430
mov edx, dword [esp + 0x18]
inc edx
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x48]
call fcn.00408f50
push eax
lea ecx, [edi + 0x2c]
mov byte [esp + 0x34], 7
call fcn.0040b250
lea ecx, [esp + 0x18]
call fcn.00402430
mov ecx, dword [esp + 0x48]
mov edx, dword [esi]
mov eax, dword [esp + 0x44]
push ecx
push edx
push eax
call fcn.0041a7ef
mov ecx, dword [esp + 0x28]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [esp + 0x40]
call fcn.00402430
lea ecx, [esp + 0x38]
call fcn.00407a70
push ebp
call fcn.00419fb9
push ebx
call fcn.00419fb9
add esp, 8
lea ecx, [esp + 0x3c]
call fcn.00402430
lea ecx, [esp + 0x10]
call fcn.00402430
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0x14
mov ecx, dword [esp + 0x20]
pop edi
mov eax, 0x80004005
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x14