Function at 0x4220e0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b32c
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
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
cmp byte [0x45d26c], 0
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x244], ebx
mov eax, str.Global_
jne 0x422133
mov eax, str.Local_
push eax
lea ecx, [ebp - 0x23c]
call fcn.00405da0
xor esi, esi
mov dword [ebp - 4], esi
cmp ebx, esi
jne 0x422152
mov edi, 0x80004003
jmp 0x422248
xor ecx, ecx
cmp word [ebx], si
setne cl
lea edi, [ecx - 1]
and edi, 0x80070057
jl 0x422248
cmp byte [0x45d26c], 0
push 0xffffffffffffffff
je 0x42217b
push str.Global_
jmp 0x422180
push str.Local_
push ebx
call fcn.0042a8a0
add esp, 0xc
push ebx
test eax, eax
je 0x42219b
lea ecx, [ebp - 0x23c]
call fcn.0042c580
jmp 0x4221a6
lea ecx, [ebp - 0x230]
call fcn.00403ea0
mov edx, dword [ebp - 0x230]
push edx
push esi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x248], eax
cmp eax, esi
je 0x4221c5
cmp eax, 0xffffffff
jne 0x4221db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x4221d9
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, esi
jl 0x422248
mov ebx, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor edi, edi
test esi, esi
jne 0x422222
mov eax, dword [ebp - 0x248]
push 4
push esi
push esi
push 4
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x422214
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42221e
push 1
push 5
call dword [sym.imp.KERNEL32.dll_SleepEx]
inc edi
cmp edi, 3
jl 0x4221e7
test esi, esi
jne 0x422222
xor edi, edi
jmp 0x422235
mov ecx, dword [esi]
mov edx, dword [ebp - 0x240]
push esi
mov dword [edx], ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x244]
mov esi, dword [ebp - 0x230]
push ebx
call fcn.00405370
mov ecx, dword [ebp - 0x240]
mov edx, dword [ecx]
push eax
mov eax, dword [str.a5WHG1dY4Flsz2NIHvULM8Orrw7IdqaW]
push esi
push edx
push str.___d___S___S
push edi
push eax
push 0x45f250
call fcn.00404770
or ebx, 0xffffffff
add esp, 0x20
mov dword [ebp - 4], ebx
mov dword [ebp - method.ATL::CFixedStringMgr.virtual_0], vtable.ATL::CFixedStringT_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____260_.0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4222ab
push eax
lea ecx, [ebp - 0x21c]
push 0
push ecx
call fcn.0042fa50
add esp, 0xc
mov edx, dword [ebp - 0x230]
cmp dword [edx - 0xc], 0
mov esi, dword [edx - 0x10]
lea eax, [edx - 0x10]
je 0x422311
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x4222ea
cmp dword [edx - 8], 0
jge 0x4222d6
push 0x80070057
call fcn.00401770
mov dword [edx - 0xc], 0
mov eax, dword [ebp - 0x230]
xor edx, edx
mov word [eax], dx
jmp 0x422311
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4222ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x244], ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422346
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], ebx
mov dword [ebp - method.ATL::CFixedStringMgr.virtual_0], vtable.ATL::CFixedStringMgr.0
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