Function at 0x421ce0
Capabilities:
Access peb ldr_data
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b2cc
mov eax, dword fs:[0]
push eax
sub esp, 0x508
mov eax, dword [0x45d780]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
push edi
mov esi, ecx
call fcn.00405370
mov ecx, dword [ebp + 8]
mov edx, dword [str.CzrQOMFo5yN63poLym9HIw]
push eax
movzx eax, byte [ebp + 0xc]
push eax
push ecx
push str.__d___d___S
push edx
push 0x45f250
call fcn.00404680
xor eax, eax
mov dword [ebp - 0x50c], eax
mov dword [ebp - 0x508], eax
mov dword [ebp - 0x504], eax
add esp, 0x1c
lea eax, [ebp - 0x50c]
push eax
mov ecx, esi
xor ebx, ebx
mov dword [ebp - 0x50c], 0xc
call fcn.00421b80
test eax, eax
js 0x421d7c
cmp dword [ebp - 0x508], ebx
je 0x421d7c
lea ebx, [ebp - 0x50c]
cmp byte [0x45d26c], 0
mov eax, str.Global_
jne 0x421d8f
mov eax, str.Local_
push eax
lea ecx, [ebp - 0x2cc]
call fcn.00405da0
mov dword [ebp - 4], 0
test edi, edi
jne 0x421deb
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x40
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x90]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421dd2
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x90]
push ecx
jmp 0x421e25
mov edx, dword [ebp - 0x2c0]
push 0xffffffffffffffff
push edx
push edi
call fcn.0042a8a0
add esp, 0xc
test eax, eax
je 0x421e0f
push edi
lea ecx, [ebp - 0x2cc]
call fcn.0042c580
jmp 0x421e30
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421e14
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x2c0]
call fcn.00403890
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x4f8]
call fcn.004217f0
mov byte [ebp - 4], 1
push 5
push str..Lock
lea ecx, [ebp - 0x4ec]
call fcn.00403890
movzx edi, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2c0]
neg edi
sbb edi, edi
push edx
and edi, 4
lea eax, [edi + ecx]
push eax
push 0
push 4
push ebx
push 0xffffffffffffffff
mov dword [ebp - 0x514], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [ebp - 0x4fc], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x421eb0
jg 0x421e9f
mov ebx, eax
jmp 0x422034
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x422034
test ebx, ebx
je 0x422028
cmp ebx, 0xffffffff
je 0x422028
push 0
push 0
push 0
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x510], eax
test eax, eax
jne 0x421f08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x28], eax
test eax, eax
jle 0x421ef4
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov eax, dword [ebp - 0x4fc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x422034
push 0x45f9c4
push 4
call fcn.00431a1f
mov ebx, eax
add esp, 8
mov dword [ebp - 0x500], ebx
test ebx, ebx
je 0x421fb7
mov dword [ebx], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4ec]
push ecx
push 0
lea edx, [ebp - 0x50c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx], eax
test eax, eax
jne 0x421fc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x28], eax
test eax, eax
jle 0x421f64
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x421f6f
mov ebx, 0x80004003
mov edi, dword [ebp - 0x500]
mov dword [ebp - 0x500], edi
mov byte [ebp - 4], 1
mov eax, dword [edi]
test eax, eax
je 0x421f92
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push edi
call fcn.0042f970
add esp, 4
mov eax, dword [ebp - 0x510]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x4fc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x422034
mov ebx, 0x8007000e
mov dword [esi + 0x28], 8
jmp 0x421f9b
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x2c0]
lea ecx, [esi + 0x14]
push eax
xor ebx, ebx
mov dword [esi + 0x1c], 1
mov dword [esi + 8], edx
call fcn.00421940
mov ecx, dword [ebp - 0x500]
mov eax, dword [ebp - 0x510]
mov edx, dword [ebp - 0x4fc]
mov dword [esi + 0x18], ecx
mov ecx, esi
mov dword [esi + 0xc], edx
mov dword [esi + 0x2c], edi
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
call fcn.004215d0
test eax, eax
je 0x422034
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, esi
call fcn.004215f0
mov edx, dword [esi + 0x10]
add edx, edi
mov dword [esi + 4], edx
jmp 0x422034
mov dword [esi + 0x28], 0
mov ebx, 0x80004005
mov eax, dword [ebp - 0x508]
test eax, eax
je 0x422045
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x14]
push ecx
mov ecx, dword [esi + 8]
push edx
mov edx, dword [ebp - 0x514]
push ecx
mov ecx, dword [esi + 0x18]
push edx
mov edx, dword [esi + 4]
push ecx
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0xc]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
mov edx, dword [ebp - 0x2c0]
push ecx
push eax
mov eax, dword [str.CzrQOMFo5yN63poLym9HIw]
push edx
push str.___S___S___d__map_p__buf_p___p__mutex_p__size_d___d__overhead_d___locks_d
push ebx
push eax
push 0x45f250
call fcn.00404770
add esp, 0x3c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4f8]
call fcn.004030c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2cc]
call fcn.004030c0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430215
mov esp, ebp
pop ebp
ret 0xc