Function at 0x5702f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, dword fs:[0x18]
sub esp, 0x40
mov dword [esi + 0x34], 0xdeadbeef
mov edi, dword [sym.imp.kernel32.dll_VirtualAlloc]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x2000
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
sub esp, 0x10
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x15c
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 4], str.VirtualAlloc_should_fail_on_zero_sized_allocation_n
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x15d
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.got__ld__expected_ERROR_INVALID_PARAMETER_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.0055ab70
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x2000
mov dword [esp + 4], 0xfffc
mov dword [esp], 0
call edi
sub esp, 0x10
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x161
xor eax, eax
test ebx, ebx
setne al
mov dword [esp + 4], str.VirtualAlloc_failed_n
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x164
call fcn.0055a4a0
lea eax, [ebp - 0x28]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.kernel32.dll_VirtualQuery]
mov dword [esp + 8], 0x1c
mov dword [ebp - 0x38], eax
call eax
sub esp, 0xc
cmp eax, 0x1c
sete al
mov dword [esp + 4], str.VirtualQuery_failed_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x166
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str._p____p_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x167
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str._p____p_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x168
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], str._lx___PAGE_NOACCESS_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x169
call fcn.0055a4a0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], str._Ix___0x10000_n
cmp eax, 0x10000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x16a
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], str._lx___MEM_RESERVE_n
cmp eax, 0x2000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x16b
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], str._lx___PAGE_NOACCESS_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x16c
call fcn.0055a4a0
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], str._lx___MEM_PRIVATE_n
cmp eax, 0x20000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov dword [esi + 0x34], 0xdeadbeef
call fcn.0057d110
lea ecx, [ebp - 0x2c]
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x16f
mov dword [esp + 0xc], ecx
mov ecx, dword [sym.imp.kernel32.dll_VirtualProtect]
mov dword [esp], ebx
mov dword [esp + 8], 2
mov dword [esp + 4], 0xfffc
mov dword [ebp - 0x34], ecx
call ecx
sub esp, 0x10
test eax, eax
sete al
mov dword [esp + 4], str.VirtualProtect_should_fail_on_a_not_committed_memory_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x171
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.got__ld__expected_ERROR_INVALID_ADDRESS_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 0x1e7
sete al
mov dword [esp], eax
call fcn.0055ab70
mov dword [esp], ebx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0x1000
mov dword [ebp - 0x30], edi
call edi
sub esp, 0x10
mov edi, eax
mov eax, 0x175
call fcn.0055a4a0
xor eax, eax
cmp ebx, edi
mov dword [esp + 4], str.VirtualAlloc_failed_n
sete al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x178
call fcn.0055a4a0
lea edx, [ebp - 0x28]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], 0x1c
mov edi, dword [ebp - 0x38]
call edi
sub esp, 0xc
cmp eax, 0x1c
sete al
mov dword [esp + 4], str.VirtualQuery_failed_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x17a
call fcn.0055a4a0
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], str._p____p_n
cmp eax, ebx
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x17b
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str._p____p_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x17c
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], str._lx___PAGE_NOACCESS_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x17d
call fcn.0055a4a0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], str._Ix___0x1000_n
cmp eax, 0x1000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x17e
call fcn.0055a4a0
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], 0x5fdd42
cmp eax, 0x1000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x180
call fcn.0055a4a0
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], str._lx___PAGE_NOACCESS_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x181
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], str._lx___MEM_PRIVATE_n
cmp eax, 0x20000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov dword [esi + 0x34], 0xdeadbeef
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x185
lea eax, [ebp - 0x2c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 0xfffc
mov ecx, dword [ebp - 0x34]
call ecx
sub esp, 0x10
test eax, eax
sete al
mov dword [esp + 4], str.VirtualProtect_should_fail_on_a_not_committed_memory_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x187
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.got__ld__expected_ERROR_INVALID_ADDRESS_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 0x1e7
sete al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x18a
call fcn.0055a4a0
lea eax, [ebp - 0x2c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1000
mov ecx, dword [ebp - 0x34]
call ecx
sub esp, 0x10
mov dword [esp], eax
mov dword [esp + 4], str.VirtualProtect_failed_n
call fcn.0055ab70
mov eax, 0x18b
call fcn.0055a4a0
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.wrong_old_protection:_got__04lx_instead_of_PAGE_NOACCESS_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x18e
lea eax, [ebp - 0x2c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 0x1000
mov ecx, dword [ebp - 0x34]
call ecx
sub esp, 0x10
mov dword [esp], eax
mov dword [esp + 4], str.VirtualProtect_failed_n
call fcn.0055ab70
mov eax, 0x18f
call fcn.0055a4a0
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.wrong_old_protection:_got__04lx_instead_of_PAGE_READONLY_n
cmp eax, 2
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x192
lea eax, [ebp - 0x28]
mov dword [esp], ebx
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [ebp - 0x38], edi
call edi
sub esp, 0xc
cmp eax, 0x1c
sete al
mov dword [esp + 4], str.VirtualQuery_failed_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x194
call fcn.0055a4a0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], str._Ix___0x1000_n
cmp eax, 0x1000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x195
call fcn.0055a4a0
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], 0x5fdd42
cmp eax, 0x1000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x196
call fcn.0055a4a0
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], 0x5fde2e
cmp eax, 4
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov dword [ebx], 0x55555555
mov eax, 0x198
mov dword [ebx + 4], 0x55555555
mov dword [ebx + 8], 0x55555555
mov dword [ebx + 0xc], 0x55555555
mov dword [ebx + 0x10], 0x55555555
call fcn.0055a4a0
mov eax, dword [ebx]
mov dword [esp + 4], str.wrong_data__lx_n
cmp eax, 0x55555555
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov dword [esp], ebx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x80000
mov dword [esp + 4], 0x1000
mov edi, dword [ebp - 0x30]
call edi
sub esp, 0x10
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x19b
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.VirtualAlloc_failed_err__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, edi
sete al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x19c
call fcn.0055a4a0
mov ecx, dword [ebx]
mov dword [esp + 4], str.wrong_data__lx_n
cmp ecx, 0x55555555
mov dword [esp + 8], ecx
sete al
test ecx, ecx
sete cl
or eax, ecx
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x19d
call fcn.0055a4a0
lea edx, [ebp - 0x28]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], 0x1c
mov ecx, dword [ebp - 0x38]
call ecx
sub esp, 0xc
cmp eax, 0x1c
sete al
mov dword [esp + 4], str.VirtualQuery_failed_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x19f
call fcn.0055a4a0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], str._Ix___0x1000_n
cmp eax, 0x1000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1a0
call fcn.0055a4a0
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], 0x5fdd42
cmp eax, 0x1000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1a1
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], 0x5fde2e
cmp eax, 4
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
lea ecx, [ebx + 0x1000]
mov dword [esp + 0xc], 1
mov dword [esp], ecx
mov dword [esp + 8], 0x80000
mov dword [esp + 4], 0x1000
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x3c], ecx
call edi
sub esp, 0x10
mov edi, eax
mov eax, 0x1a4
call fcn.0055a4a0
mov dword [esp + 4], str.VirtualAlloc_failed_n
mov ecx, dword [ebp - 0x3c]
xor eax, eax
cmp ecx, edi
sete al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
lea edx, [ebp - 0x28]
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1a6
mov dword [esp + 4], edx
mov dword [esp], edi
mov dword [esp + 8], 0x1c
mov ecx, dword [ebp - 0x38]
call ecx
sub esp, 0xc
cmp eax, 0x1c
sete al
mov dword [esp + 4], str.VirtualQuery_failed_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1a8
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], str._Ix___0xf000_n
cmp eax, 0xf000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1a9
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], str._lx___MEM_RESERVE_n
cmp eax, 0x2000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1aa
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], str._lx___0_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
lea eax, [ebx + 0xf000]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x80000
mov dword [esp + 4], 0x2000
mov dword [esp], eax
mov edi, dword [ebp - 0x30]
call edi
sub esp, 0x10
mov edi, eax
mov eax, 0x1ad
call fcn.0055a4a0
xor eax, eax
test edi, edi
mov dword [esp + 4], str.VirtualAlloc_failed_n
sete al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1ae
mov eax, dword [esi + 0x34]
mov dword [esp + 4], 0x5fe805
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 0x1e7
sete al
mov dword [esp], eax
call fcn.0055ab70
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x2000
mov dword [esp + 4], 0x1000
mov dword [esp], 0
mov edi, dword [ebp - 0x30]
call edi
sub esp, 0x10
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1b3
xor eax, eax
test edi, edi
sete al
mov dword [esp + 4], str.VirtualAlloc_succeeded_n
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1b4
call fcn.0055a4a0
mov eax, dword [esi + 0x34]
mov dword [esp + 4], 0x5fe805
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.0055ab70
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0x1000
mov dword [esp], 0
mov edi, dword [ebp - 0x30]
call edi
sub esp, 0x10
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1b8
xor eax, eax
test edi, edi
sete al
mov dword [esp + 4], str.VirtualAlloc_succeeded_n
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1b9
call fcn.0055a4a0
mov eax, dword [esi + 0x34]
mov dword [esp + 4], 0x5fe805
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.0055ab70
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp], ebx
mov dword [esp + 0xc], 0x12
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0x1000
mov edi, dword [ebp - 0x30]
call edi
sub esp, 0x10
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1bd
xor eax, eax
test edi, edi
sete al
mov dword [esp + 4], str.VirtualAlloc_succeeded_n
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1be
call fcn.0055a4a0
mov eax, dword [esi + 0x34]
mov dword [esp + 4], 0x5fe805
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.0055ab70
mov dword [esi + 0x34], 0xdeadbeef
mov eax, 0x1c1
call fcn.0055a4a0
lea edx, [ebp - 0x2c]
mov dword [esp], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x84
mov dword [esp + 4], 0x1000
mov edi, dword [ebp - 0x34]
call edi
sub esp, 0x10
test eax, eax
sete al
mov dword [esp + 4], str.VirtualProtect_succeeded_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1c3
mov eax, dword [esi + 0x34]
mov dword [esp + 4], 0x5fe805
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.0055ab70
mov dword [esi + 0x34], 0xdeadbeef
mov eax, 0x1c6
call fcn.0055a4a0
lea edx, [ebp - 0x2c]
mov dword [esp], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1000
mov dword [ebp - 0x34], edi
call edi
sub esp, 0x10
test eax, eax
sete al
mov dword [esp + 4], str.VirtualProtect_succeeded_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1c7
mov eax, dword [esi + 0x34]
mov dword [esp + 4], 0x5fe805
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.0055ab70
mov dword [esi + 0x34], 0xdeadbeef
mov eax, 0x1ca
call fcn.0055a4a0
mov edi, dword [sym.imp.kernel32.dll_VirtualFree]
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10000
call edi
sub esp, 0xc
test eax, eax
sete al
mov dword [esp + 4], str.VirtualFree_should_fail_with_type_0_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1cb
call fcn.0055a4a0
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.got__ld__expected_ERROR_INVALID_PARAMETER_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.0055ab70
mov dword [esi + 0x34], 0xdeadbeef
mov eax, 0x1cf
call fcn.0055a4a0
mov dword [esp], ebx
mov dword [esp + 8], 0x10000
mov dword [esp + 4], 0
call edi
sub esp, 0xc
test eax, eax
sete al
mov dword [esp + 4], str.VirtualFree_should_fail_with_type_MEM_FREE_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1d0
call fcn.0055a4a0
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.got__ld__expected_ERROR_INVALID_PARAMETER_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1d3
call fcn.0055a4a0
mov dword [esp], ebx
mov dword [esp + 8], 0x4000
mov dword [esp + 4], 0x10000
call edi
sub esp, 0xc
mov dword [esp], eax
mov dword [esp + 4], str.VirtualFree_failed_n
call fcn.0055ab70
mov eax, 0x1d6
call fcn.0055a4a0
mov dword [esp], ebx
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 1
call edi
sub esp, 0xc
test eax, eax
sete al
mov dword [esp + 4], str.VirtualFree_should_fail_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1d7
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.got__ld__expected_ERROR_INVALID_PARAMETER_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1da
call fcn.0055a4a0
mov dword [esp], ebx
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
call edi
sub esp, 0xc
mov dword [esp], eax
mov dword [esp + 4], str.VirtualFree_failed_n
call fcn.0055ab70
mov dword [esp + 0xc], 0x204
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0x2000
mov dword [esp], 0
mov eax, dword [ebp - 0x30]
call eax
sub esp, 0x10
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1de
xor eax, eax
test ebx, ebx
setne al
mov dword [esp + 4], str.VirtualAlloc_failed_n
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1df
call fcn.0055a4a0
lea eax, [ebp - 0x28]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov esi, dword [ebp - 0x38]
call esi
sub esp, 0xc
cmp eax, 0x1c
sete al
mov dword [esp + 4], str.VirtualQuery_failed_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1e0
call fcn.0055a4a0
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], str._p____p_n
cmp eax, ebx
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1e1
call fcn.0055a4a0
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], str._p____p_n
cmp eax, ebx
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1e2
call fcn.0055a4a0
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], str.wrong_protect__lx_n
cmp eax, 0x204
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1e4
call fcn.0055a4a0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], str.wrong_size__Ix_n
cmp eax, 0x2000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1e5
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], str.wrong_state__lx_n
cmp eax, 0x1000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1e6
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], str.wrong_protect__lx_n
cmp eax, 0x204
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1e7
call fcn.0055a4a0
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], str.wrong_type__lx_n
cmp eax, 0x20000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1e9
call fcn.0055a4a0
lea eax, [ebp - 0x2c]
mov dword [esp + 8], 4
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x1000
mov dword [esp], ebx
mov edx, dword [ebp - 0x34]
call edx
sub esp, 0x10
mov dword [esp], eax
mov dword [esp + 4], str.VirtualProtect_failed_n
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1ea
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.wrong_protect__lx_n
cmp eax, 0x204
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1eb
lea eax, [ebp - 0x28]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
sub esp, 0xc
cmp eax, 0x1c
sete al
mov dword [esp + 4], str.VirtualQuery_failed_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1ec
call fcn.0055a4a0
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], str._p____p_n
cmp eax, ebx
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1ed
call fcn.0055a4a0
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], str._p____p_n
cmp eax, ebx
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1ee
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], str.wrong_protect__lx_n
cmp eax, 0x204
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1f0
call fcn.0055a4a0
mov edx, dword [ebp - 0x1c]
mov eax, 1
cmp edx, 0x2000
je 0x5714b4
mov eax, dword [0x8f0770]
test eax, eax
sete cl
xor eax, eax
cmp edx, 0x1000
sete al
and eax, ecx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.wrong_size__Ix_n
call fcn.0055ab70
mov eax, 0x1f2
call fcn.0055a4a0
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], str.wrong_state__lx_n
cmp eax, 0x1000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1f3
call fcn.0055a4a0
mov edx, dword [ebp - 0x14]
mov eax, 1
cmp edx, 0x204
je 0x571522
mov eax, dword [0x8f0770]
test eax, eax
sete cl
xor eax, eax
cmp edx, 4
sete al
and eax, ecx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.wrong_protect__lx_n
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x1f5
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], str.wrong_type__lx_n
cmp eax, 0x20000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1f7
call fcn.0055a4a0
lea eax, [ebp - 0x2c]
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x1000
mov dword [esp], ebx
mov eax, dword [ebp - 0x34]
call eax
sub esp, 0x10
mov dword [esp], eax
mov dword [esp + 4], str.VirtualProtect_failed_n
call fcn.0055ab70
mov eax, 0x1f8
call fcn.0055a4a0
mov edx, dword [ebp - 0x2c]
mov eax, 1
cmp edx, 0x204
je 0x5715d5
mov esi, dword [0x8f0770]
test esi, esi
sete cl
xor eax, eax
cmp edx, 4
sete al
and eax, ecx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.wrong_protect__lx_n
call fcn.0055ab70
mov eax, 0x1fa
call fcn.0055a4a0
lea eax, [ebp - 0x28]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov eax, dword [ebp - 0x38]
call eax
sub esp, 0xc
cmp eax, 0x1c
sete al
mov dword [esp + 4], str.VirtualQuery_failed_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1fb
call fcn.0055a4a0
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], str._p____p_n
cmp eax, ebx
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1fc
call fcn.0055a4a0
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], str._p____p_n
cmp eax, ebx
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1fd
call fcn.0055a4a0
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], str.wrong_protect__lx_n
cmp eax, 0x204
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x1ff
call fcn.0055a4a0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], str.wrong_size__Ix_n
cmp eax, 0x1000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x200
call fcn.0055a4a0
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], str.wrong_state__lx_n
cmp eax, 0x1000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x201
mov edx, dword [ebp - 0x14]
mov eax, 1
cmp edx, 0x202
je 0x57173b
mov ecx, dword [0x8f0770]
test ecx, ecx
sete cl
xor eax, eax
cmp edx, 2
sete al
and eax, ecx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.wrong_protect__lx_n
call fcn.0055ab70
mov eax, 0x203
call fcn.0055a4a0
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], str.wrong_type__lx_n
cmp eax, 0x20000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x205
call fcn.0055a4a0
mov dword [esp], ebx
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
call edi
sub esp, 0xc
mov dword [esp], eax
mov dword [esp + 4], str.VirtualFree_failed_n
call fcn.0055ab70
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0x2000
mov dword [esp], 0
mov eax, dword [ebp - 0x30]
call eax
mov ebx, eax
sub esp, 0x10
mov eax, 0x208
call fcn.0055a4a0
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.VirtualAlloc_failed_n
setne al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x209
call fcn.0055a4a0
lea eax, [ebp - 0x28]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov esi, dword [ebp - 0x38]
call esi
sub esp, 0xc
cmp eax, 0x1c
sete al
mov dword [esp + 4], str.VirtualQuery_failed_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x20a
call fcn.0055a4a0
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], str._p____p_n
cmp eax, ebx
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x20b
call fcn.0055a4a0
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], str._p____p_n
cmp eax, ebx
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x20c
call fcn.0055a4a0
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], str.wrong_protect__lx_n
cmp eax, 4
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x20e
call fcn.0055a4a0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], str.wrong_size__Ix_n
cmp eax, 0x2000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x20f
call fcn.0055a4a0
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], str.wrong_state__lx_n
cmp eax, 0x1000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x210
call fcn.0055a4a0
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], str.wrong_protect__lx_n
cmp eax, 4
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x211
call fcn.0055a4a0
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], str.wrong_type__lx_n
cmp eax, 0x20000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x213
call fcn.0055a4a0
lea eax, [ebp - 0x2c]
mov dword [esp + 8], 0x202
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x1000
mov dword [esp], ebx
mov eax, dword [ebp - 0x34]
call eax
sub esp, 0x10
mov dword [esp], eax
mov dword [esp + 4], str.VirtualProtect_failed_n
call fcn.0055ab70
mov eax, 0x214
call fcn.0055a4a0
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.wrong_protect__lx_n
cmp eax, 4
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x215
call fcn.0055a4a0
lea eax, [ebp - 0x28]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
sub esp, 0xc
cmp eax, 0x1c
sete al
mov dword [esp + 4], str.VirtualQuery_failed_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x216
call fcn.0055a4a0
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], str._p____p_n
cmp eax, ebx
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x217
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str._p____p_n
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x218
call fcn.0055a4a0
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], str.wrong_protect__lx_n
cmp eax, 4
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x219
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], str.wrong_size__Ix_n
cmp eax, 0x1000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x21a
call fcn.0055a4a0
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], str.wrong_state__lx_n
cmp eax, 0x1000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x21b
call fcn.0055a4a0
mov edx, dword [ebp - 0x14]
mov eax, 1
cmp edx, 2
je 0x571b20
mov eax, dword [0x8f0770]
test eax, eax
sete cl
xor eax, eax
cmp edx, 0x202
sete al
and eax, ecx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.wrong_protect__lx_n
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x21d
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], str.wrong_type__lx_n
cmp eax, 0x20000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x21f
call fcn.0055a4a0
mov dword [esp], ebx
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
call edi
sub esp, 0xc
mov dword [esp + 4], str.VirtualFree_failed_n
mov dword [esp], eax
call fcn.0055ab70
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], 0x2000
mov dword [esp], 0
mov esi, dword [ebp - 0x30]
call esi
sub esp, 0x10
mov ebx, eax
mov eax, 0x223
call fcn.0055a4a0
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.VirtualAlloc_failed_n
setne al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x224
call fcn.0055a4a0
xor eax, eax
test bx, bx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.returned_memory__p_is_not_aligned_to_64k_n
mov dword [esp], eax
call fcn.0055ab70
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x225
mov dword [esp], ebx
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
call edi
sub esp, 0xc
mov dword [esp + 4], str.VirtualFree_failed_n
mov dword [esp], eax
call fcn.0055ab70
mov dword [esp], ebx
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], 0x1000
call esi
sub esp, 0x10
mov dword [ebp - 0x30], eax
call fcn.0057d110
mov dword [eax], 0x5fd7d7
mov dword [eax + 4], 0x227
xor eax, eax
mov dword [esp + 0xc], ebx
mov edx, dword [ebp - 0x30]
mov dword [esp + 4], str.VirtualAlloc_returned__p__expected__p_n
cmp ebx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.0055ab70
mov edx, dword fs:[0x18]
mov dword [ebp - 0x30], edx
mov dword [edx + 0x34], 0xdeadbeef
mov dword [esp], ebx
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x40003000
mov dword [esp + 4], 0x1000
call esi
sub esp, 0x10
mov esi, eax
mov eax, 0x22c
call fcn.0055a4a0
xor eax, eax
test esi, esi
mov dword [esp + 4], str.VirtualAlloc_unexpectedly_succeeded_n
sete al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x22d
call fcn.0055a4a0
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x34]
mov dword [esp + 4], str.got__ld__expected_ERROR_INVALID_PARAMETER_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edx + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.0055ab70
mov eax, 0x22f
call fcn.0055a4a0
mov dword [esp], ebx
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
call edi
sub esp, 0xc
mov dword [esp + 4], str.VirtualFree_failed_n
mov dword [esp], eax
call fcn.0055ab70
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret