Function at 0x4223b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b38c
mov eax, dword fs:[0]
push eax
sub esp, 0x470
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 ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ebx
mov esi, ecx
mov dword [ebp - 0x46c], edi
call fcn.00405370
push eax
mov eax, dword [str.3U8nCikXIEU]
push edi
push str.__d___S
push eax
push 0x45f250
call fcn.00404680
add esp, 0x18
cmp byte [0x45d26c], 0
mov eax, str.Global_
jne 0x42241f
mov eax, str.Local_
push eax
lea ecx, [ebp - 0x23c]
call fcn.00405da0
xor eax, eax
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x422563
xor ecx, ecx
cmp word [ebx], ax
setne cl
lea edi, [ecx - 1]
and edi, 0x80070057
jl 0x4226ba
mov edx, dword [ebp - 0x230]
push 0xffffffffffffffff
push edx
push ebx
mov dword [ebp - 0x470], eax
call fcn.0042a8a0
add esp, 0xc
test eax, eax
je 0x422479
push ebx
lea ecx, [ebp - 0x23c]
call fcn.0042c580
jmp 0x42249c
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422480
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x230]
call fcn.00403890
cmp dword [ebp - 0x46c], 0
jne 0x4224e3
lea eax, [ebp - 0x46c]
push eax
push ebx
mov ecx, esi
call fcn.004220e0
cmp dword [ebp - 0x46c], 0
mov edi, eax
jne 0x4224d1
test edi, edi
js 0x4226ba
mov edi, 0x800705b6
jmp 0x4226ba
test edi, edi
js 0x4226ba
mov dword [ebp - 0x470], 4
mov ecx, dword [ebp - 0x230]
push ecx
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x474], eax
test eax, eax
je 0x4226a1
cmp eax, 0xffffffff
je 0x4226a1
mov edx, dword [ebp - 0x46c]
add edx, dword [ebp - 0x470]
push edx
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x478], eax
test eax, eax
jne 0x42256d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x28], eax
test eax, eax
jle 0x42254c
and eax, 0xffff
or eax, 0x80070000
mov edx, dword [ebp - 0x474]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x4226ba
mov edi, 0x80004003
jmp 0x4226ba
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x468]
call fcn.004217f0
mov byte [ebp - 4], 1
push str..Lock
lea ecx, [ebp - 0x45c]
call fcn.00403ea0
push 0x45f9c4
push 4
call fcn.00431a1f
add esp, 8
mov dword [ebp - 0x47c], eax
test eax, eax
je 0x4225ba
mov dword [eax], 0
mov byte [ebp - 4], 1
mov ebx, eax
jmp 0x4225bc
xor ebx, ebx
mov ecx, dword [ebp - 0x45c]
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [ebx], eax
test eax, eax
jne 0x422649
mov dword [ebp - 0x47c], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebx]
test eax, eax
je 0x4225f3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
push ebx
call fcn.0042f970
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x28], eax
test eax, eax
jle 0x422613
and eax, 0xffff
or eax, 0x80070000
mov edx, dword [ebp - 0x478]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x422690
mov edi, 0x80004003
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x468]
call fcn.004030c0
jmp 0x4226ba
mov ecx, dword [ebp - 0x46c]
lea edx, [ebp - 0x230]
mov dword [esi + 8], ecx
xor edi, edi
lea ecx, [esi + 0x14]
push edx
mov dword [esi + 0x1c], edi
call fcn.00421940
mov eax, dword [ebp - 0x474]
mov ecx, dword [ebp - 0x470]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x478]
mov dword [esi + 0x18], ebx
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x422690
add eax, ecx
mov dword [esi + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x468]
call fcn.004030c0
jmp 0x4226ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x28], eax
test eax, eax
jle 0x4226b8
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
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 [esi + 0x18]
push ecx
mov ecx, dword [esi + 4]
push edx
mov edx, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 0xc]
push edx
mov edx, dword [esi + 0x1c]
push ecx
mov ecx, dword [str.3U8nCikXIEU]
push edx
push eax
mov eax, dword [ebp - 0x230]
push eax
push str.___S___S___d__map_p__buf_p___p__mutex_p__size_d__adjust_d__locks_d
push edi
push ecx
push 0x45f250
call fcn.00404770
add esp, 0x38
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.004030c0
mov eax, edi
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 8