Function at 0x41a000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d978
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x1004618]
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 0x41a0a9
mov edx, dword [ebp - 0xa4]
cmp dword [edx], 0
je 0x41a0a9
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax]
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp - 0xa0]
push edx
call fcn.0054155e
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.00464ea0
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 0x41a0db
jmp 0x41a67c
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.00423100
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.004d5910
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
jmp 0x41a193
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.00426130
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.004d5910
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0041fee0
movzx edx, al
neg edx
sbb edx, edx
add edx, 1
movzx eax, dl
test eax, eax
je 0x41a286
lea ecx, [ebp - 0x3c]
call fcn.004d5950
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.004d5950
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 0x41a257
mov dword [ebp - 0xe0], 4
jmp 0x41a275
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 0x41a167
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.004d6a20
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.004d5910
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
jmp 0x41a316
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.00426130
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.004d5910
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0041fee0
movzx edx, al
neg edx
sbb edx, edx
add edx, 1
movzx eax, dl
test eax, eax
je 0x41a449
lea ecx, [ebp - 0x3c]
call fcn.004d5950
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 0x41a3ca
lea ecx, [ebp - 0x3c]
call fcn.004d5950
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 0x41a3ca
jmp 0x41a2ea
lea ecx, [ebp - 0x3c]
call fcn.004d5950
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.0041f890
mov dword [eax], 0
jmp 0x41a2ea
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 0x41a479
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004282b0
jmp 0x41a67c
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.0042aef0
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 0x41a4f0
call fcn.00560d3a
xor eax, eax
jne 0x41a4f0
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 0x41a543
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.00426130
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 0x41a56e
call fcn.00560d3a
xor edx, edx
jne 0x41a56e
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x9c], eax
lea ecx, [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0x44]
call fcn.0041ff30
movzx edx, al
test edx, edx
je 0x41a5ed
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.004d5950
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.00446c20
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 0x41a511
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.004282b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret