Function at 0x40694c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562bc0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x204
push ebx
push esi
push edi
mov eax, dword [0xfc6800]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0xfc8818]
add eax, 1
mov dword [0xfc8818], eax
push 1
mov ecx, 0xfc8894
call fcn.0041e420
push 0x186a0
mov ecx, 0xfc8894
call fcn.00421360
call fcn.0042e890
mov dword [0xfc8814], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0xfc8808]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0xfc880c], 4
mov dword [0xfc8804], 0
mov dword [0xfc8830], 0
mov ecx, 0xfc8b34
call fcn.0041de00
mov ecx, 0xfc8bdc
call fcn.0041de00
mov ecx, 0x10240bc
call fcn.0041e2c0
call fcn.00480750
mov dword [0xfc8aec], 0
mov dword [0xfc8ae8], 0
fld1
fstp qword [0xfc3168]
mov dword [0xfc3e28], 0x7530
mov dword [0xfc8b20], 0
mov dword [0xfc8b24], 0
mov dword [0xfc8b98], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov ecx, 0xfc88c0
call fcn.004c0750
push 1
mov ecx, 0xfc88e0
call fcn.0041d6b0
mov ecx, 0xfc88ec
call fcn.0041de00
mov dword [0xfc8800], 0
mov ecx, 0xfc890c
call fcn.0041de00
mov dword [ebp - 4], 0
mov eax, dword [0xfc8858]
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x108]
mov edx, dword [ecx]
mov dword [ebp - 0x10c], edx
push 0xfc8840
mov eax, dword [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004f57b0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
jmp 0x406223
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], ecx
lea ecx, [ebp - 0x1c]
call fcn.00425350
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x40], eax
mov ecx, dword [0xfc8858]
mov dword [ebp - 0x118], ecx
push 0xfc8840
mov edx, dword [ebp - 0x118]
push edx
lea ecx, [ebp - 0x4c]
call fcn.004f57b0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00428400
mov byte [ebp - 0x1d9], al
movzx ecx, byte [ebp - 0x1d9]
neg ecx
sbb ecx, ecx
add ecx, 1
movzx edx, cl
test edx, edx
je 0x406297
lea ecx, [ebp - 0x1c]
call fcn.004bc4b0
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
mov ecx, dword [ecx + 4]
call fcn.00414d70
jmp 0x4061f7
mov edx, dword [0xfc8858]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax]
mov dword [ebp - 0x124], ecx
push 0xfc8840
mov edx, dword [ebp - 0x124]
push edx
lea ecx, [ebp - 0x54]
call fcn.004f57b0
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
jmp 0x4062ff
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x128], eax
lea ecx, [ebp - 0x1c]
call fcn.00425350
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x58], edx
mov eax, dword [0xfc8858]
mov dword [ebp - 0x130], eax
push 0xfc8840
mov ecx, dword [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x64]
call fcn.004f57b0
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00428400
mov byte [ebp - 0x1e1], al
movzx eax, byte [ebp - 0x1e1]
neg eax
sbb eax, eax
add eax, 1
movzx ecx, al
test ecx, ecx
je 0x406372
lea ecx, [ebp - 0x1c]
call fcn.004bc4b0
mov dword [ebp - 0x1e8], eax
mov edx, dword [ebp - 0x1e8]
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 4]
call fcn.00414b20
jmp 0x4062d3
mov ecx, dword [0xfc8bf8]
mov dword [ebp - 0x138], ecx
xor edx, edx
cmp dword [ebp - 0x138], 0
sete dl
movzx eax, dl
test eax, eax
jne 0x40647d
mov ecx, dword [0xfc8bf4]
mov dword [ebp - 0x13c], ecx
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx]
mov dword [ebp - 0x140], eax
push 0xfc8bdc
mov ecx, dword [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.004f57b0
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
jmp 0x4063fd
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x144], edx
lea ecx, [ebp - 0x24]
call fcn.00425350
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x70], ecx
mov edx, dword [0xfc8bf4]
mov dword [ebp - 0x14c], edx
push 0xfc8bdc
mov eax, dword [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004f57b0
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00428400
mov byte [ebp - 0x1e9], al
movzx edx, byte [ebp - 0x1e9]
neg edx
sbb edx, edx
add edx, 1
movzx eax, dl
test eax, eax
je 0x40647d
lea ecx, [ebp - 0x24]
call fcn.004bc4b0
mov dword [ebp - 0x1f0], eax
mov ecx, dword [ebp - 0x1f0]
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 4]
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
call fcn.00445180
jmp 0x4063d1
mov ecx, dword [0xfc8858]
mov dword [ebp - 0x158], ecx
mov edx, dword [ebp - 0x158]
mov eax, dword [edx]
mov dword [ebp - 0x15c], eax
push 0xfc8840
mov ecx, dword [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0x84]
call fcn.004f57b0
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
jmp 0x4064f1
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x160], edx
lea ecx, [ebp - 0x1c]
call fcn.00425350
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x88], ecx
mov edx, dword [0xfc8858]
mov dword [ebp - 0x168], edx
push 0xfc8840
mov eax, dword [ebp - 0x168]
push eax
lea ecx, [ebp - 0x94]
call fcn.004f57b0
lea ecx, [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00428400
mov byte [ebp - 0x1f1], al
movzx edx, byte [ebp - 0x1f1]
neg edx
sbb edx, edx
add edx, 1
movzx eax, dl
test eax, eax
je 0x40656b
lea ecx, [ebp - 0x1c]
call fcn.004bc4b0
mov dword [ebp - 0x1f8], eax
mov ecx, dword [ebp - 0x1f8]
mov dword [ebp - 0x16c], ecx
mov edx, dword [ebp - 0x16c]
mov ecx, dword [edx + 4]
call fcn.00415100
jmp 0x4064bf
mov eax, dword [0xfc88dc]
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
push ecx
mov ecx, 0xfc88e0
call fcn.0041f7d0
mov edx, dword [0xfc88d8]
mov dword [ebp - 0x174], edx
mov eax, dword [ebp - 0x174]
mov ecx, dword [eax]
mov dword [ebp - 0x178], ecx
push 0xfc88c0
mov edx, dword [ebp - 0x178]
push edx
lea ecx, [ebp - 0x9c]
call fcn.004f57b0
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
jmp 0x4065fe
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x180], edx
mov dword [ebp - 0x17c], eax
lea ecx, [ebp - 0x30]
call fcn.00425350
mov ecx, dword [ebp - 0x180]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0x17c]
mov dword [ebp - 0xa0], edx
mov eax, dword [0xfc88d8]
mov dword [ebp - 0x184], eax
push 0xfc88c0
mov ecx, dword [ebp - 0x184]
push ecx
lea ecx, [ebp - 0xac]
call fcn.004f57b0
lea edx, [ebp - 0xac]
push edx
lea ecx, [ebp - 0x30]
call fcn.00428400
mov byte [ebp - 0x1f9], al
movzx eax, byte [ebp - 0x1f9]
neg eax
sbb eax, eax
add eax, 1
movzx ecx, al
test ecx, ecx
je 0x40666e
lea ecx, [ebp - 0x30]
call fcn.004bc4b0
mov dword [ebp - 0x200], eax
mov edx, dword [ebp - 0x200]
push edx
mov ecx, 0xfc88e0
call fcn.0041d720
jmp 0x4065cc
mov dword [ebp - 0x28], 0
mov eax, dword [0xfc8858]
mov dword [ebp - 0x18c], eax
mov ecx, dword [ebp - 0x18c]
mov edx, dword [ecx]
mov dword [ebp - 0x190], edx
mov dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0xb0], eax
mov ecx, 0xfc8840
test ecx, ecx
jne 0x4066b2
call fcn.00526834
xor edx, edx
jne 0x4066b2
mov eax, dword [0xfc8840]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
jmp 0x406707
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], ecx
lea ecx, [ebp - 0x1c]
call fcn.00425350
mov edx, dword [ebp - 0x198]
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp - 0x194]
mov dword [ebp - 0xb8], eax
mov ecx, dword [0xfc8858]
mov dword [ebp - 0x19c], ecx
mov dword [ebp - 0xc4], 0
mov edx, dword [ebp - 0x19c]
mov dword [ebp - 0xc0], edx
mov eax, 0xfc8840
test eax, eax
jne 0x406737
call fcn.00526834
xor ecx, ecx
jne 0x406737
mov edx, dword [0xfc8840]
mov dword [ebp - 0xc4], edx
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004f7ee0
mov byte [ebp - 0x201], al
movzx ecx, byte [ebp - 0x201]
test ecx, ecx
je 0x4067cc
lea ecx, [ebp - 0x1c]
call fcn.004bc4b0
mov dword [ebp - 0x208], eax
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x1a0], edx
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x1a4], edx
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x1c]
call fcn.004bc4b0
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp - 0x20c]
mov dword [ebp - 0x1ac], ecx
mov edx, dword [ebp - 0x1ac]
mov ecx, dword [edx + 4]
call fcn.00416bb0
jmp 0x4066d5
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x32
push eax
mov ecx, 0xfc8880
call fcn.00429ae0
push 0xfc8880
mov ecx, 0x1024178
call fcn.004faa90
call fcn.00418e80
mov ecx, dword [0xfc8858]
mov dword [ebp - 0x1b0], ecx
mov edx, dword [ebp - 0x1b0]
mov eax, dword [edx]
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0xcc], 0
mov ecx, dword [ebp - 0x1b4]
mov dword [ebp - 0xc8], ecx
mov edx, 0xfc8840
test edx, edx
jne 0x40682f
call fcn.00526834
xor eax, eax
jne 0x40682f
mov ecx, dword [0xfc8840]
mov dword [ebp - 0xcc], ecx
mov edx, dword [ebp - 0xcc]
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
jmp 0x406885
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1bc], ecx
mov dword [ebp - 0x1b8], edx
lea ecx, [ebp - 0x1c]
call fcn.00425350
mov eax, dword [ebp - 0x1bc]
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0x1b8]
mov dword [ebp - 0xd0], ecx
mov edx, dword [0xfc8858]
mov dword [ebp - 0x1c0], edx
mov dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0xd8], eax
mov ecx, 0xfc8840
test ecx, ecx
jne 0x4068b5
call fcn.00526834
xor edx, edx
jne 0x4068b5
mov eax, dword [0xfc8840]
mov dword [ebp - 0xdc], eax
lea ecx, [ebp - 0xdc]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004f7ee0
mov byte [ebp - 0x20d], al
movzx edx, byte [ebp - 0x20d]
test edx, edx
je 0x406911
lea ecx, [ebp - 0x1c]
call fcn.004bc4b0
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x1c8], eax
mov ecx, dword [ebp - 0x1c8]
mov ecx, dword [ecx + 4]
call fcn.00418a20
jmp 0x406853
jmp 0x40694c
mov dword [ebp - 4], 0xffffffff
jmp 0x406960
mov edx, dword [0xfc8884]
mov dword [ebp - 0x1d0], edx
lea eax, [ebp - 0x14]
push eax
push 0x40
mov ecx, dword [ebp - 0x1d0]
push ecx
mov edx, dword [0xfc8880]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0xfc8884]
mov dword [ebp - 0x1d4], eax
mov ecx, dword [0xfc8880]
mov dword [ebp - 0x1d8], ecx
mov edx, dword [ebp - 0x1d4]
push edx
mov eax, dword [ebp - 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4069f8
mov dword [0xfc8820], 1
mov dword [0xfc3170], 8
mov dword [0xfc3174], 0x10
mov dword [0xfc3178], 2
mov dword [0xfc317c], 4
jmp 0x406a2a
mov dword [0xfc8820], 0
mov dword [0xfc3170], 2
mov dword [0xfc3174], 4
mov dword [0xfc3178], 8
mov dword [0xfc317c], 0x10
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0xfc8828], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0xfc8824], eax
mov dword [0x1024088], 0
call fcn.0042e1d0
mov dword [0xfc8838], eax
mov dword [0xfc883c], edx
call fcn.00424af0
call fcn.00401e20
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret