Function at 0x565620
Capabilities:
Delete file
Get common file path
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x214]
sub esp, 0x268
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea eax, [ebp - 0x110]
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5fea7d
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
lea eax, [ebp - 0x110]
sub esp, 0x10
mov ebx, dword fs:[0x18]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xe0000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov edi, eax
mov dword [ebp - 0x248], eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xdd6
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.CreateFile__s__error__ld_n
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x110]
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 0xffffffff
setne al
xor esi, esi
mov dword [esp], eax
call fcn.0055ab70
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [0x8e0684]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov dword [ebp - 0x258], 0x601800
mov dword [ebp - 0x23c], 0x601800
sub esp, 4
mov dword [ebp - 0x24c], 1
jmp 0x565ba4
test eax, eax
je 0x566610
call fcn.0057d110
mov edi, dword fs:[0x18]
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xdf3
mov eax, dword [edi + 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x238]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], str._ld:_CreateFileMapping__04lx__error__ld_n
mov ebx, dword [ebp - 0x240]
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.0055ab70
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 4
call dword [sym.imp.kernel32.dll_MapViewOfFile]
sub esp, 0x14
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xdf6
mov eax, dword [edi + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp + 4], str._ld:_MapViewOfFile_failed__ld_n
mov dword [esp], eax
call fcn.0055ab70
lea ecx, [ebp - 0x230]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
sub esp, 0xc
mov dword [ebp - 0x244], eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xdfa
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.VirtualQuery_failed__ld_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x244]
mov dword [esp], edx
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xdfb
mov eax, dword [ebp - 0x230]
mov dword [esp + 0x10], ebx
cmp eax, ebx
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 8], esi
movzx eax, al
mov dword [esp + 4], str._ld:_got__p___expected__p_n
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xdfc
mov edx, dword [0x8e0684]
mov eax, dword [ebp - 0x224]
mov dword [esp + 8], esi
mov dword [esp + 0x10], edx
cmp edx, eax
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str._ld:_got__Ix___expected__lx_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xdfd
mov eax, dword [ebp - 0x21c]
mov dword [esp + 8], esi
cmp eax, 2
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str._ld:_got__lx___expected_PAGE_READONLY_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xdfe
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x10], ebx
cmp eax, ebx
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 8], esi
movzx eax, al
mov dword [esp + 4], str._ld:__p____p_n
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xdff
mov eax, dword [ebp - 0x228]
mov dword [esp + 8], esi
cmp eax, 2
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str._ld:__lx___PAGE_READONLY_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe00
mov eax, dword [ebp - 0x220]
mov dword [esp + 8], esi
cmp eax, 0x1000
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str._ld:__lx___MEM_COMMIT_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe01
mov eax, dword [ebp - 0x218]
mov dword [esp + 8], esi
cmp eax, 0x40000
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str._ld:__lx___MEM_MAPPED_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, dword [ebp - 0x238]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp + 8], 0x1000
mov dword [esp + 0xc], eax
mov eax, dword [0x8e0684]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_VirtualAlloc]
sub esp, 0x10
mov dword [ebp - 0x244], eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe05
mov eax, dword [ebp - 0x238]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], str._ld:_VirtualAlloc__02lx__should_fail_n
mov edx, dword [ebp - 0x244]
test edx, edx
sete al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe06
mov eax, dword [edi + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], str._ld:_expected_ERROR_ACCESS_DENIED__got__ld_n
cmp dword [edi + 0x34], 5
sete al
mov dword [esp], eax
call fcn.0055ab70
lea ecx, [ebp - 0x234]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp + 0xc], ecx
mov eax, dword [ebp - 0x238]
mov dword [esp + 8], eax
mov eax, dword [0x8e0684]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
mov edx, eax
mov eax, dword [ebp - 0x238]
sub esp, 0x10
mov dword [ebp - 0x244], edx
cmp eax, 2
je 0x5665c8
cmp eax, 8
je 0x5665c8
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe0e
mov eax, dword [ebp - 0x238]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], str._ld:_VirtualProtect__02lx__should_fail_n
mov edx, dword [ebp - 0x244]
test edx, edx
sete al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe0f
mov eax, dword [edi + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], str._ld:_expected_ERROR_INVALID_PARAMETER__got__ld_n
cmp dword [edi + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.0055ab70
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x240]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
add esi, 1
add dword [ebp - 0x23c], 0xc
cmp esi, 0x1f
je 0x565c91
mov eax, dword [ebp - 0x23c]
mov ebx, dword fs:[0x18]
mov dword [ebx + 0x34], 0xdeadbeef
mov edi, dword [eax]
mov dword [ebp - 0x238], edi
mov dword [esp + 0x14], 0
mov eax, dword [0x8e0684]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, edi
or eax, 0x8000000
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x248]
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov edi, dword [ebp - 0x23c]
mov dword [ebp - 0x240], eax
sub esp, 0x18
mov edi, dword [edi + 4]
test edi, edi
jne 0x565758
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe17
xor eax, eax
mov dword [esp + 8], esi
mov dword [esp + 4], str._ld:_CreateFileMapping_should_fail_n
mov ecx, dword [ebp - 0x240]
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe18
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], str._ld:_expected_ERROR_INVALID_PARAMETER__got__ld_n
cmp dword [ebx + 0x34], 0x57
sete al
add esi, 1
mov dword [esp], eax
call fcn.0055ab70
add dword [ebp - 0x23c], 0xc
cmp esi, 0x1f
jne 0x565ba4
mov ebx, dword [ebp - 0x24c]
cmp ebx, 1
sbb edi, edi
and edi, 0xffffffc4
add edi, 0x40
mov dword [ebp - 0x23c], edi
mov esi, dword fs:[0x18]
mov dword [ebp - 0x238], esi
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0x14], 0
mov eax, dword [0x8e0684]
mov dword [esp + 8], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x248]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
sub esp, 0x18
mov edi, eax
mov dword [ebp - 0x250], eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe20
mov eax, dword [esi + 0x34]
mov dword [esp + 8], 0x1f
mov dword [esp + 0xc], eax
xor eax, eax
test edi, edi
setne al
mov dword [esp + 4], str._ld:_CreateFileMapping_error__ld_n
mov dword [esp], eax
call fcn.0055ab70
cmp ebx, 1
mov edi, dword [ebp - 0x258]
sbb eax, eax
xor ebx, ebx
and eax, 0xffffffe0
add eax, 0x26
mov dword [ebp - 0x254], eax
jmp 0x565dac
cmp ecx, 1
je 0x566171
cmp ecx, 0x10
jne 0x566820
test eax, eax
jne 0x566171
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe43
mov dword [esp + 8], ebx
mov dword [esp + 4], str._ld:_VirtualProtect_doesnt_support_PAGE_EXECUTE_n
mov edx, dword [0x8f0770]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.0055ab70
add ebx, 1
add edi, 0xc
cmp ebx, 0x1f
je 0x566585
mov eax, dword [ebp - 0x238]
mov dword [eax + 0x34], 0xdeadbeef
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov esi, dword [ebp - 0x254]
mov dword [esp + 4], esi
mov esi, dword [ebp - 0x250]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_MapViewOfFile]
sub esp, 0x14
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe26
mov eax, dword [ebp - 0x238]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.MapViewOfFile_failed__ld_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
setne al
mov dword [esp], eax
call fcn.0055ab70
mov eax, dword [ebp - 0x238]
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x234], 0xdeadbeef
mov dword [eax + 0x34], 0xdeadbeef
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov eax, dword [0x8e0684]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
sub esp, 0x10
mov dword [ebp - 0x240], eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe2b
mov eax, dword [ebp - 0x238]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.VirtualProtect_error__ld_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x240]
mov dword [esp], edx
call fcn.0055ab70
call fcn.0057d110
mov ecx, dword [ebp - 0x23c]
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe2c
mov eax, dword [ebp - 0x234]
mov dword [esp + 0xc], ecx
cmp eax, ecx
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.got__lx___expected__lx_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, dword [ebp - 0x238]
lea edx, [ebp - 0x230]
mov dword [eax + 0x34], 0xdeadbeef
mov dword [esp + 4], edx
mov dword [esp + 8], 0x1c
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_VirtualQuery]
sub esp, 0xc
mov dword [ebp - 0x240], eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe30
mov eax, dword [ebp - 0x238]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.VirtualQuery_failed__ld_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x240]
mov dword [esp], edx
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe31
mov eax, dword [ebp - 0x230]
mov dword [esp + 0x10], esi
cmp eax, esi
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 8], ebx
movzx eax, al
mov dword [esp + 4], str._ld:_got__p___expected__p_n
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe32
mov edx, dword [0x8e0684]
mov eax, dword [ebp - 0x224]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], edx
cmp edx, eax
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str._ld:_got__Ix___expected__lx_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe33
mov eax, dword [ebp - 0x21c]
mov dword [esp + 8], ebx
cmp eax, 1
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str._ld:_got__lx___expected_PAGE_NOACCESS_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe34
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x10], esi
cmp eax, esi
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 8], ebx
movzx eax, al
mov dword [esp + 4], str._ld:__p____p_n
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov ecx, dword [ebp - 0x23c]
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe35
mov eax, dword [ebp - 0x228]
mov dword [esp + 0x10], ecx
cmp eax, ecx
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 8], ebx
movzx eax, al
mov dword [esp + 4], str._ld:__lx____lx_n
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe36
mov eax, dword [ebp - 0x220]
mov dword [esp + 8], ebx
cmp eax, 0x1000
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str._ld:__lx___MEM_COMMIT_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe37
mov eax, dword [ebp - 0x218]
mov dword [esp + 8], ebx
cmp eax, 0x40000
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str._ld:__lx___MEM_MAPPED_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x234], 0xdeadbeef
mov dword [eax + 0x34], 0xdeadbeef
mov ecx, dword [edi]
lea eax, [ebp - 0x234]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov eax, dword [0x8e0684]
mov dword [ebp - 0x244], ecx
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_VirtualProtect]
mov edx, dword [edi + 4]
mov ecx, dword [ebp - 0x244]
sub esp, 0x10
mov dword [ebp - 0x240], eax
test edx, edx
je 0x565d50
mov eax, dword [ebp - 0x240]
test eax, eax
jne 0x566171
cmp ecx, 0x10
je 0x565d6a
lea eax, [ecx - 0x20]
and eax, 0xffffffdf
je 0x566808
cmp ecx, 0x80
je 0x5667e0
mov dword [ebp - 0x24c], ecx
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov edx, dword fs:[0x18]
mov dword [eax + 4], 0xe54
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x244], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], str._ld:_VirtualProtect_error__ld_n
mov eax, dword [ebp - 0x240]
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe55
mov eax, dword [ebp - 0x234]
mov dword [esp + 8], ebx
cmp eax, 1
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str._ld:_got__lx___expected_PAGE_NOACCESS_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov edx, dword [ebp - 0x244]
lea eax, [ebp - 0x230]
mov dword [edx + 0x34], 0xdeadbeef
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_VirtualQuery]
sub esp, 0xc
mov dword [ebp - 0x240], eax
call fcn.0057d110
mov edx, dword [ebp - 0x244]
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe59
mov eax, dword [edx + 0x34]
mov dword [esp + 4], str.VirtualQuery_failed__ld_n
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x240]
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe5a
mov eax, dword [ebp - 0x230]
mov dword [esp + 0x10], esi
cmp eax, esi
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 8], ebx
movzx eax, al
mov dword [esp + 4], str._ld:_got__p___expected__p_n
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe5b
mov edx, dword [0x8e0684]
mov eax, dword [ebp - 0x224]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], edx
cmp edx, eax
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str._ld:_got__Ix___expected__lx_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov ecx, dword [ebp - 0x24c]
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe5c
mov eax, dword [ebp - 0x21c]
mov dword [esp + 0x10], ecx
cmp ecx, eax
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 8], ebx
movzx eax, al
mov dword [esp + 4], str._ld:_got__lx___expected__lx_n
mov dword [ebp - 0x240], ecx
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe5d
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x10], esi
cmp eax, esi
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 8], ebx
movzx eax, al
mov dword [esp + 4], str._ld:__p____p_n
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov ecx, dword [ebp - 0x23c]
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe5e
mov eax, dword [ebp - 0x228]
mov dword [esp + 0x10], ecx
cmp eax, ecx
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 8], ebx
movzx eax, al
mov dword [esp + 4], str._ld:__lx____lx_n
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe5f
mov eax, dword [ebp - 0x220]
mov dword [esp + 8], ebx
cmp eax, 0x1000
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str._ld:__lx___MEM_COMMIT_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe60
mov eax, dword [ebp - 0x218]
mov dword [esp + 8], ebx
cmp eax, 0x40000
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str._ld:__lx___MEM_MAPPED_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov ecx, dword [ebp - 0x240]
movzx eax, byte [ebp - 0x21c]
cmp ecx, 8
sete dl
cmp ecx, 0x80
sete cl
or edx, ecx
mov byte [ebp - 0x240], dl
cmp eax, 0x40
je 0x5666cb
ja 0x5666c0
sub eax, 4
and eax, 0xfffffffb
je 0x5666cb
mov dword [ebp - 0x234], 0xdeadbeef
lea eax, [ebp - 0x234]
mov ecx, dword fs:[0x18]
mov dword [ecx + 0x34], 0xdeadbeef
mov dword [ebp - 0x24c], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [0x8e0684]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
sub esp, 0x10
mov dword [ebp - 0x244], eax
call fcn.0057d110
mov ecx, dword [ebp - 0x24c]
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe78
mov eax, dword [ecx + 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], str._ld:_VirtualProtect_error__ld_n
mov edx, dword [ebp - 0x244]
mov dword [esp], edx
call fcn.0055ab70
xor ecx, ecx
cmp byte [ebp - 0x240], 0
je 0x5664ea
mov eax, dword [0x8f0770]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x240], ecx
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x240]
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x566557
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe7b
mov eax, dword [ebp - 0x234]
mov edx, dword [edi + 8]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
cmp edx, eax
mov dword [esp + 0x10], edx
sete al
mov dword [esp + 4], str._ld:_got__lx___expected__lx_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x566510
mov dword [esp], esi
add ebx, 1
add edi, 0xc
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
cmp ebx, 0x1f
jne 0x565dac
mov eax, dword [ebp - 0x250]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x248]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebp - 0x110]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe0b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x238]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str._ld:_VirtualProtect__02lx__error__ld_n
mov edx, dword [ebp - 0x244]
mov dword [esp], edx
call fcn.0055ab70
jmp 0x565b73
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xde3
mov eax, dword [ebx + 0x34]
mov dword [esp + 0xc], eax
mov edi, dword [ebp - 0x238]
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp], str._ld:_CreateFileMapping__04lx__failed:__ld_n
call fcn.0055a5e0
mov eax, edi
sub eax, 0x20
and eax, 0xffffffdf
je 0x566697
cmp dword [ebp - 0x238], 0x80
jne 0x565760
mov eax, 0xdef
call fcn.0055a4a0
mov dword [esp + 8], esi
mov dword [esp + 4], str._ld:_CreateFileMapping_doesnt_support_PAGE_EXECUTE_WRITECOPY_n
mov ebx, dword [0x8f0770]
xor eax, eax
test ebx, ebx
sete al
mov dword [esp], eax
call fcn.0055ab70
mov dword [ebp - 0x24c], 0
jmp 0x565b91
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xde8
mov dword [esp + 8], esi
mov dword [esp + 4], str._ld:_CreateFileMapping_doesnt_support_PAGE_EXECUTE_n
jmp 0x566673
cmp eax, 0x80
jne 0x56644f
lea eax, [ebp - 0x230]
mov byte [esi], 0xfe
mov ecx, dword fs:[0x18]
mov dword [ecx + 0x34], 0xdeadbeef
mov dword [ebp - 0x24c], ecx
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_VirtualQuery]
sub esp, 0xc
mov dword [ebp - 0x244], eax
call fcn.0057d110
mov ecx, dword [ebp - 0x24c]
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe68
mov eax, dword [ecx + 0x34]
mov dword [esp + 4], str.VirtualQuery_failed__ld_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x244]
mov dword [esp], edx
call fcn.0055ab70
xor ecx, ecx
cmp byte [ebp - 0x240], 0
je 0x566752
mov eax, dword [0x8f0770]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x244], ecx
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x244]
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x5667c7
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe6b
mov edx, dword [edi + 8]
mov eax, dword [ebp - 0x21c]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], edx
cmp edx, eax
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str._ld:_got__lx___expected__lx_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x566780
jmp 0x56644f
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe4f
mov dword [esp + 8], ebx
mov dword [esp + 4], str._ld:_VirtualProtect_doesnt_support_PAGE_EXECUTE_WRITECOPY_n
jmp 0x565d88
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe49
jmp 0x565d7c
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe70
xor eax, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], str._ld:_VirtualProtect_should_fail_n
mov edx, dword [ebp - 0x240]
test edx, edx
sete al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov esi, dword [ebp - 0x238]
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0xe71
mov eax, dword [esi + 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], str._ld:_expected_ERROR_INVALID_PARAMETER__got__ld_n
cmp dword [esi + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.0055ab70
jmp 0x565d9d