Function at 0x418490
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58bcd8
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x6ed420]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], ecx
mov eax, dword [ebp - 0x220]
mov dword [eax + 0x44], 0
mov ecx, dword [ebp - 0x220]
mov dword [ecx + 0x4c], 0
mov edx, dword [ebp - 0x220]
add edx, 0x50
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 0xa4]
mov dword [eax + 8], 0
xor ecx, ecx
je 0x418539
mov edx, dword [ebp - 0xa4]
cmp dword [edx], 0
je 0x418539
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax]
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp - 0xa0]
push edx
call fcn.005341b3
add esp, 4
mov eax, dword [ebp - 0xa4]
mov dword [eax], 0
mov ecx, dword [ebp - 0xa4]
mov dword [ecx + 4], 0
mov ecx, dword [ebp - 0x220]
call fcn.004616c0
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0xa8], eax
xor ecx, ecx
cmp dword [ebp - 0xa8], 0
sete cl
movzx edx, cl
test edx, edx
je 0x41856b
jmp 0x418b0c
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0x220]
add edx, 0x50
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0xb0]
call fcn.004202a0
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xac]
mov dword [ecx + 8], edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0xb4]
mov eax, dword [edx]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0xb8]
push edx
lea ecx, [ebp - 0x58]
call fcn.005261b0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
jmp 0x418623
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc0], edx
mov dword [ebp - 0xbc], eax
lea ecx, [ebp - 0x3c]
call fcn.004252b0
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0xc4], ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x68]
call fcn.005261b0
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00468000
movzx edx, al
neg edx
sbb edx, edx
add edx, 1
movzx eax, dl
test eax, eax
je 0x418716
lea ecx, [ebp - 0x3c]
call fcn.004244b0
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xcc], edx
xor eax, eax
shl eax, 2
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ecx + 0x10]
mov eax, dword [eax + edx]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx + 0x50]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
mov dword [edx + eax*4], ecx
lea ecx, [ebp - 0x3c]
call fcn.004244b0
mov dword [ebp - 0xd0], eax
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 4]
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx + 8]
mov dword [ebp - 0xd8], edx
cmp dword [ebp - 0xd8], 0
jne 0x4186e7
mov dword [ebp - 0xe0], 4
jmp 0x418705
mov eax, dword [ebp - 0xd4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0xdc], ecx
mov edx, dword [ebp - 0xdc]
mov eax, dword [edx + 8]
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0xe0]
mov dword [ebp - 0x4c], ecx
jmp 0x4185f7
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x4c]
mov dword [edx + 0x4c], eax
lea ecx, [ebp - 0xe1]
push ecx
lea edx, [ebp - 0xe2]
push edx
lea ecx, [ebp - 0x34]
call fcn.004cf580
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0xe8], ecx
mov edx, dword [ebp - 0xe8]
mov eax, dword [edx]
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0xec]
push edx
lea ecx, [ebp - 0x70]
call fcn.005261b0
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
jmp 0x4187a6
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xf4], edx
mov dword [ebp - 0xf0], eax
lea ecx, [ebp - 0x3c]
call fcn.004252b0
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0xf0]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0xf8], ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x80]
call fcn.005261b0
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00468000
movzx edx, al
neg edx
sbb edx, edx
add edx, 1
movzx eax, dl
test eax, eax
je 0x4188d9
lea ecx, [ebp - 0x3c]
call fcn.004244b0
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xfc]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x100], edx
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x104], ecx
cmp dword [ebp - 0x104], 0
je 0x41885a
lea ecx, [ebp - 0x3c]
call fcn.004244b0
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x110], edx
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 0x18]
and ecx, 1
je 0x41885a
jmp 0x41877a
lea ecx, [ebp - 0x3c]
call fcn.004244b0
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 0x114]
mov eax, dword [edx + 4]
mov dword [ebp - 0x118], eax
xor ecx, ecx
shl ecx, 2
mov edx, dword [ebp - 0x118]
add ecx, dword [edx + 0x10]
mov dword [ebp - 0x11c], ecx
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x11c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x120]
mov edx, dword [ecx]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x84], ecx
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x34]
call fcn.0041db50
mov dword [eax], 0
jmp 0x41877a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x160], eax
xor ecx, ecx
cmp dword [ebp - 0x160], 0
sete cl
movzx edx, cl
test edx, edx
je 0x418909
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004269a0
jmp 0x418b0c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x168]
imul ecx, ecx, 0xc
add ecx, 1
push ecx
mov ecx, dword [ebp - 0x220]
add ecx, 0x40
call fcn.0042a460
mov edx, dword [ebp - 0x220]
mov eax, dword [edx + 0x40]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x16c], ecx
mov edx, dword [ebp - 0x16c]
mov eax, dword [edx]
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x8c], 0
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x88], ecx
lea edx, [ebp - 0x34]
test edx, edx
jne 0x418980
call fcn.005538a7
xor eax, eax
jne 0x418980
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
jmp 0x4189d3
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x178], ecx
mov dword [ebp - 0x174], edx
lea ecx, [ebp - 0x44]
call fcn.004252b0
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x174]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x17c], edx
mov dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x34]
test ecx, ecx
jne 0x4189fe
call fcn.005538a7
xor edx, edx
jne 0x4189fe
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x9c], eax
lea ecx, [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00425380
movzx edx, al
test edx, edx
je 0x418a7d
mov eax, dword [ebp - 0x14]
mov byte [eax], 0x8d
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 1], 0x83
lea ecx, [ebp - 0x44]
call fcn.004244b0
mov edx, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [edx + 2], eax
mov ecx, dword [ebp - 0x14]
add ecx, 6
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov byte [edx], 0x50
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov byte [ecx], 0xe8
mov edx, dword [ebp - 0x14]
add edx, 5
mov eax, fcn.00444500
sub eax, edx
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 1], eax
mov edx, dword [ebp - 0x14]
add edx, 5
mov dword [ebp - 0x14], edx
jmp 0x4189a1
mov eax, dword [ebp - 0x14]
mov byte [eax], 0xc3
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x220]
mov eax, dword [edx + 0x44]
mov dword [ebp - 0x184], eax
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx + 0x40]
mov dword [ebp - 0x188], edx
lea eax, [ebp - 0x10]
push eax
push 0x40
mov ecx, dword [ebp - 0x184]
push ecx
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0x18c], ecx
mov edx, dword [ebp - 0x220]
mov eax, dword [edx + 0x40]
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x18c]
push ecx
mov edx, dword [ebp - 0x190]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004269a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret