Function at 0xa57110
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
push 0x1e
call fcn.00a63770
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0xa5779c
mov dword [ebp - 0x104], 0
lea eax, [ebp - 0x104]
push eax
push 0x40
push 0x1e
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [ebp - 0x11c], pe_nt_image_headers32
mov dword [ebp - 0x11b], 0
mov byte [ebp - 0x110], 0xe9
mov dword [ebp - 0x10f], 0
mov edx, 0x800f
mov word [ebp - 0x100], dx
mov dword [ebp - 0xfe], 0
mov dword [ebp - 0xf8], 0
push 0xec
push 0
lea eax, [ebp - 0xf4]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x124], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x114], 0
mov byte [ebp - 0x11d], 0
movzx ecx, byte [ebp - 0x11d]
test ecx, ecx
jne 0xa576de
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov dword [ebp - 0x144], edx
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call fcn.00a57f20
add esp, 8
mov dword [ebp - 0x14c], eax
mov edx, dword [ebp - 0x128]
and edx, 0x1000
je 0xa5721d
jmp 0xa576de
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x144]
sub ecx, dword [ebp + 8]
cmp ecx, 5
jb 0xa572c5
mov dword [ebp - 0x150], 0
mov edx, dword [ebp - 0x124]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0xf8]
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x150]
push ecx
mov edx, dword [ebp - 0x174]
push edx
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x144]
push edx
call fcn.00a57090
add esp, 0x14
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0x14
jle 0xa572a3
jmp 0xa576de
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x14c], 5
mov byte [ebp - 0x11d], 1
jmp 0xa57674
movzx edx, byte [ebp - 0x13a]
cmp edx, 0xe8
jne 0xa5736b
mov dword [ebp - 0x154], 0
mov eax, dword [ebp - 0x124]
imul eax, eax, 0xc
lea ecx, [ebp + eax - 0xf8]
mov dword [ebp - 0x178], ecx
mov edx, dword [ebp - 0x154]
push edx
mov eax, dword [ebp - 0x178]
push eax
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0x108]
push edx
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call fcn.00a57000
add esp, 8
push eax
call fcn.00a57090
add esp, 0x14
mov edx, dword [ebp - 0x124]
add edx, 1
mov dword [ebp - 0x124], edx
cmp dword [ebp - 0x124], 0x14
jle 0xa57350
jmp 0xa576de
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], 5
jmp 0xa57674
movzx ecx, byte [ebp - 0x13a]
and ecx, 0xfd
cmp ecx, 0xe9
jne 0xa5748d
lea edx, [ebp - 0x140]
push edx
mov eax, dword [ebp - 0x144]
push eax
call fcn.00a57000
add esp, 8
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00a57020
add esp, 8
movzx eax, al
test eax, eax
je 0xa573f3
mov ecx, dword [ebp - 0x114]
cmp ecx, dword [ebp - 0x158]
jbe 0xa573d6
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x17c], edx
jmp 0xa573e2
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x17c]
mov dword [ebp - 0x114], ecx
jmp 0xa57488
mov dword [ebp - 0x15c], 0
mov edx, dword [ebp - 0x124]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0xf8]
mov dword [ebp - 0x180], eax
mov ecx, dword [ebp - 0x15c]
push ecx
mov edx, dword [ebp - 0x180]
push edx
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x158]
push edx
call fcn.00a57090
add esp, 0x14
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0x14
jle 0xa5745b
jmp 0xa576de
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x14c], 5
mov edx, dword [ebp - 0x144]
cmp edx, dword [ebp - 0x114]
sbb eax, eax
add eax, 1
mov byte [ebp - 0x11d], al
jmp 0xa57674
movzx ecx, byte [ebp - 0x13a]
and ecx, 0xf0
cmp ecx, 0x70
je 0xa574c5
movzx edx, byte [ebp - 0x13a]
cmp edx, 0xe3
je 0xa574c5
movzx eax, byte [ebp - 0x139]
and eax, 0xf0
cmp eax, 0x80
jne 0xa575ed
lea ecx, [ebp - 0x140]
push ecx
mov edx, dword [ebp - 0x144]
push edx
call fcn.00a57000
add esp, 8
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x160]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00a57020
add esp, 8
movzx edx, al
test edx, edx
je 0xa57534
mov eax, dword [ebp - 0x114]
cmp eax, dword [ebp - 0x160]
jbe 0xa57517
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x184], ecx
jmp 0xa57523
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x184], edx
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x114], eax
jmp 0xa575e8
movzx ecx, byte [ebp - 0x13a]
cmp ecx, 0xe3
jne 0xa57554
mov byte [ebp - 0x11d], 0
jmp 0xa576de
mov dword [ebp - 0x164], 0
mov edx, dword [ebp - 0x124]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0xf8]
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x164]
push ecx
mov edx, dword [ebp - 0x188]
push edx
lea eax, [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x160]
push edx
call fcn.00a57060
add esp, 0x14
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0x14
jle 0xa575bc
jmp 0xa576de
lea ecx, [ebp - 0x100]
push ecx
lea edx, [ebp - 0x140]
push edx
call fcn.00a570c0
add esp, 8
lea eax, [ebp - 0x100]
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], 6
jmp 0xa57674
movzx ecx, byte [ebp - 0x13a]
and ecx, 0xfe
cmp ecx, 0xc2
je 0xa5765d
movzx edx, byte [ebp - 0x13a]
and edx, 0xfd
cmp edx, 0xe9
je 0xa5765d
movzx eax, byte [ebp - 0x138]
and eax, 0xc7
cmp eax, 5
jne 0xa57643
movzx ecx, byte [ebp - 0x13a]
cmp ecx, 0xff
jne 0xa57643
movzx edx, byte [ebp - 0x136]
cmp edx, 4
je 0xa5765d
movzx eax, byte [ebp - 0x13a]
cmp eax, 0xff
jne 0xa57674
movzx ecx, byte [ebp - 0x139]
cmp ecx, 0x25
jne 0xa57674
mov edx, dword [ebp - 0x144]
cmp edx, dword [ebp - 0x114]
sbb eax, eax
add eax, 1
mov byte [ebp - 0x11d], al
mov ecx, dword [ebp - 0x144]
cmp ecx, dword [ebp - 0x114]
jae 0xa5769a
movzx edx, byte [ebp - 0x140]
cmp dword [ebp - 0x14c], edx
je 0xa5769a
mov byte [ebp - 0x11d], 0
jmp 0xa576de
mov eax, dword [ebp - 0x14c]
push eax
mov ecx, dword [ebp - 0x148]
push ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x108]
push edx
call sub.ntdll.dll_memcpy
add esp, 0xc
movzx eax, byte [ebp - 0x140]
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x108]
add ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x108], ecx
jmp 0xa571d3
movzx edx, byte [ebp - 0x11d]
test edx, edx
je 0xa57789
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov dword [ebp - 0x168], 0
jmp 0xa57724
mov edx, dword [ebp - 0x168]
add edx, 1
mov dword [ebp - 0x168], edx
mov eax, dword [ebp - 0x168]
cmp eax, dword [ebp - 0x124]
jge 0xa57787
mov ecx, dword [ebp - 0x168]
imul ecx, ecx, 0xc
mov edx, dword [ebp + ecx - 0xf8]
mov dword [ebp - 0x16c], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x168]
imul ecx, ecx, 0xc
mov edx, dword [ebp - 4]
add edx, dword [ebp + ecx - 0xf0]
mov eax, dword [ebp - 0x16c]
sub eax, edx
mov ecx, dword [ebp - 0x168]
imul ecx, ecx, 0xc
mov edx, dword [ebp + ecx - 0xf4]
mov ecx, dword [ebp - 0x170]
mov dword [ecx + edx], eax
jmp 0xa57715
jmp 0xa5779c
mov edx, dword [ebp - 4]
push edx
call fcn.00a63970
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret