Function at 0x1005c590
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10198754]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x2c], 0
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov edx, 0x70
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10103abb
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1005c5d5
mov eax, dword [ebp - 0x2c]
jmp 0x1005cc33
call fcn.1005c200
mov dword [ebp - 0x20], 0
jmp 0x1005c5ec
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp + 0xc]
jge 0x1005c7d1
lfence
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*8]
imul edx, dword [ebp - 0x20], 0x70
mov eax, dword [ebp - 0x18]
mov ecx, dword [ecx]
mov dword [eax + edx], ecx
imul edx, dword [ebp - 0x20], 0x70
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + ecx*8 + 4]
mov dword [eax + edx + 4], ecx
imul edx, dword [ebp - 0x20], 0x70
mov eax, dword [ebp - 0x18]
mov dword [eax + edx + 0xc], 0
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
mov dword [edx + ecx + 8], 0
push 0x58
push 0
imul eax, dword [ebp - 0x20], 0x70
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + eax + 0x10]
push edx
call fcn.100f2f70
add esp, 0xc
imul eax, dword [ebp - 0x20], 0x70
mov ecx, dword [ebp - 0x18]
mov dword [ecx + eax + 0x68], 0
imul edx, dword [ebp - 0x20], 0x70
mov eax, dword [ebp - 0x18]
mov dword [eax + edx + 0x6c], 0
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx]
push eax
call fcn.1005d070
add esp, 4
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
mov dword [edx + ecx], eax
imul eax, dword [ebp - 0x20], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 4]
push edx
call fcn.1005d070
add esp, 4
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
mov dword [edx + ecx + 4], eax
imul eax, dword [ebp - 0x20], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax]
push edx
mov eax, dword [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1005c280
add esp, 0x10
test eax, eax
je 0x1005c6ea
imul edx, dword [ebp - 0x20], 0x70
mov eax, dword [ebp - 0x18]
mov dword [eax + edx + 0xc], 0
jmp 0x1005c7cc
lfence
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
lea eax, [edx + ecx + 0x10]
push eax
push 5
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx]
push eax
call fcn.1005bfc0
add esp, 0xc
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
mov dword [edx + ecx + 8], eax
push 0x102
imul eax, dword [ebp - 0x20], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax]
push edx
call fcn.1005c360
add esp, 8
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
mov dword [edx + ecx + 0x68], eax
push 0x103
imul eax, dword [ebp - 0x20], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax]
push edx
call fcn.1005c360
add esp, 8
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
mov dword [edx + ecx + 0x6c], eax
imul eax, dword [ebp - 0x20], 0x70
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + eax + 8], 5
jb 0x1005c7cc
imul edx, dword [ebp - 0x20], 0x70
mov eax, dword [ebp - 0x18]
cmp dword [eax + edx + 0x68], 0
je 0x1005c789
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
cmp dword [edx + ecx + 0x6c], 0
jne 0x1005c7cc
lfence
imul eax, dword [ebp - 0x20], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 0x1c]
push edx
mov eax, dword [ecx + eax + 0x18]
push eax
imul ecx, dword [ebp - 0x20], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx + 0x14]
push eax
mov ecx, dword [edx + ecx + 0x10]
push ecx
imul edx, dword [ebp - 0x20], 0x70
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx]
push ecx
call fcn.1005d4d0
add esp, 0x14
imul edx, dword [ebp - 0x20], 0x70
mov ecx, dword [ebp - 0x18]
mov dword [ecx + edx + 0xc], eax
jmp 0x1005c5e3
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.1005c320
add esp, 8
test eax, eax
je 0x1005cc1f
lfence
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.1005d340
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x1c], 0
jmp 0x1005c829
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp + 0xc]
jge 0x1005cc0e
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + eax + 0xc], 0
je 0x1005cc09
lfence
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea edx, [ebp - 0xc]
push edx
push 0x40
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 8]
push edx
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1005cbc6
lfence
lea eax, [ebp - 8]
push eax
push 0x40
push 0x74
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1005cb80
lfence
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx + 0xc]
add eax, 0x2c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
jmp 0x1005c8ce
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
imul edx, dword [ebp - 0x1c], 0x70
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax + edx + 8]
jae 0x1005c915
lfence
imul edx, dword [ebp - 0x1c], 0x70
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx]
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov cl, byte [ecx + eax]
mov byte [edx], cl
imul edx, dword [ebp - 0x1c], 0x70
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx + 0xc]
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov dl, byte [edx]
mov byte [ecx + eax + 0x4c], dl
jmp 0x1005c8c5
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + eax + 0x68], 0
jne 0x1005c931
imul edx, dword [ebp - 0x1c], 0x70
mov eax, dword [ebp - 0x18]
cmp dword [eax + edx + 0x6c], 0
je 0x1005c950
lfence
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.1005cc50
add esp, 8
mov dword [ebp - 0x24], eax
jmp 0x1005c964
lfence
imul edx, dword [ebp - 0x1c], 0x70
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + edx + 8]
mov dword [ebp - 0x24], ecx
imul edx, dword [ebp - 0x1c], 0x70
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + edx]
mov ecx, dword [ebp - 0x18]
add edx, dword [ecx + eax + 8]
push edx
mov edx, dword [ebp - 0x24]
push edx
call fcn.1005c140
add esp, 8
mov dword [ebp - 0x24], eax
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + eax + 0x10]
push edx
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax]
push edx
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 0xc]
add edx, 0x2c
push edx
call fcn.10023d50
add esp, 0xc
imul eax, dword [ebp - 0x1c], 0x70
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x18]
mov eax, dword [edx + eax + 4]
cmp eax, dword [esi + ecx]
jae 0x1005c9e8
imul ecx, dword [ebp - 0x1c], 0x70
imul edx, dword [ebp - 0x1c], 0x70
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x18]
mov ecx, dword [eax + ecx]
sub ecx, dword [esi + edx + 4]
mov dword [ebp - 0x30], ecx
jmp 0x1005ca00
imul edx, dword [ebp - 0x1c], 0x70
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x18]
mov edx, dword [ecx + edx + 4]
sub edx, dword [esi + eax]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x7fff0000
jbe 0x1005ca9f
lfence
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx + 0xc]
add eax, 0xc
mov dword [ebp - 0x24], eax
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx + 4]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.1005c140
add esp, 8
mov dword [ebp - 0x24], eax
imul edx, dword [ebp - 0x1c], 0x70
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx + 0xc]
add ecx, 0xc
mov edx, dword [ebp - 0x24]
sub edx, ecx
push edx
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 0xc]
add edx, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax]
mov dword [ebp - 0x24], edx
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 0xc]
add edx, 0xc
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.1005c140
add esp, 8
mov dword [ebp - 0x24], eax
jmp 0x1005caca
lfence
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx]
mov dword [ebp - 0x24], eax
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx + 4]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.1005c140
add esp, 8
mov dword [ebp - 0x24], eax
imul edx, dword [ebp - 0x1c], 0x70
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + eax + 0xc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + edx + 8]
mov dword [eax + 4], edx
imul eax, dword [ebp - 0x1c], 0x70
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + ecx + 0xc]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + eax]
mov dword [ecx], eax
imul ecx, dword [ebp - 0x1c], 0x70
imul edx, dword [ebp - 0x1c], 0x70
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + edx + 0xc]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + ecx + 4]
mov dword [edx + 8], ecx
imul edx, dword [ebp - 0x1c], 0x70
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx + 0xc]
cmp dword [ecx], 0
je 0x1005cb3f
lfence
imul edx, dword [ebp - 0x1c], 0x70
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx + 0xc]
add ecx, 0x2c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx*8]
mov dword [edx], ecx
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 8]
push edx
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 0xc]
add edx, 0x2c
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0x74
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 8]
push edx
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 8]
push edx
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
imul eax, dword [ebp - 0x1c], 0x70
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax + 0xc]
cmp dword [edx], 0
je 0x1005cbe1
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x1005cc09
lfence
push 1
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx + 0xc]
push eax
call fcn.1005d5a0
add esp, 8
imul ecx, dword [ebp - 0x1c], 0x70
mov edx, dword [ebp - 0x18]
mov dword [edx + ecx + 0xc], 0
jmp 0x1005c820
call fcn.1005cfa0
mov eax, dword [ebp - 0x14]
push eax
call fcn.1005bed0
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.10103aa0
add esp, 4
call fcn.1005c490
mov eax, dword [ebp - 0x2c]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006bd80
mov esp, ebp
pop ebp
ret