Function at 0x416e90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44eb68
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4634b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
lea edx, [ebp - 0x68]
mov dword [ebp - 4], 0
call fcn.004137e0
cmp byte [esi], 0
jne 0x417181
cmp dword [edi], 0
mov cl, byte [ebp + 0x20]
setne al
mov byte [ebp - 0x45], 1
mov byte [ebp - 0x51], al
test cl, cl
jne 0x416f2f
test al, al
jne 0x416f2f
mov eax, dword [ebx + 0x6c]
push 0x40
push 0x3000
push 0x800
push 0
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov cl, byte [ebp + 0x20]
mov dword [edi], eax
mov al, byte [ebp - 0x51]
cmp dword [edi], 0
jne 0x416fcb
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.00418c10
add esp, 0xc
push eax
mov edx, 0x468f18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00418e10
add esp, 4
mov ecx, 0x468db0
cmp dword [0x468dc4], 8
cmovae ecx, dword [0x468db0]
cmp dword [eax + 0x14], 8
jb 0x416f7e
mov eax, dword [eax]
push 0x30
push ecx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0x18], 8
jb 0x416f9b
push dword [ebp - 0x2c]
call fcn.00434302
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jb 0x417076
push dword [ebp - 0x44]
call fcn.00434302
add esp, 4
xor bl, bl
jmp 0x41714b
test cl, cl
jne 0x416fd7
test al, al
jne 0x4170aa
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x6c]
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.004137e0
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x50]
push ecx
mov ecx, dword [ebp + 8]
push eax
push 5
lea edx, [edx + ecx]
mov ecx, dword [edi]
add ecx, dword [ebp - 0x58]
call fcn.00413cd0
add esp, 0xc
lea eax, [ebp - 0x5c]
lea ecx, [ebx + 0x68]
push eax
push dword [edi]
call fcn.0041aad0
mov edx, dword [edi]
lea ecx, [ebx + 0x68]
add edx, dword [ebp - 0x58]
and al, 1
mov byte [ebp - 0x45], al
lea eax, [ebp - 0x50]
push eax
push edx
call fcn.0041aad0
and byte [ebp - 0x45], al
mov eax, dword [ebp - 0x50]
jne 0x41707d
test eax, eax
je 0x41705f
cmp dword [ebp - 0x4c], 0
jbe 0x41705f
push eax
call fcn.00435220
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x417076
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x417076
push eax
call fcn.00435220
add esp, 4
xor bl, bl
jmp 0x41714b
test eax, eax
je 0x417090
cmp dword [ebp - 0x4c], 0
jbe 0x417090
push eax
call fcn.00435220
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4170a7
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x4170a7
push eax
call fcn.00435220
add esp, 4
mov esi, dword [ebp - 0x60]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
push ecx
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 4
mov edx, dword [edi]
mov edi, dword [ebp + 8]
mov ecx, edi
push eax
push dword [ebp - 0x64]
call fcn.00413cd0
add esp, 0xc
lea eax, [ebp - 0x50]
lea ecx, [ebx + 0x68]
push eax
push edi
call fcn.0041aad0
test byte [ebp - 0x45], al
mov eax, dword [ebp - 0x50]
jne 0x417107
test eax, eax
je 0x417194
cmp dword [ebp - 0x4c], 0
jbe 0x417194
push eax
call fcn.00435220
add esp, 4
xor bl, bl
jmp 0x41714b
test eax, eax
je 0x41711a
cmp dword [ebp - 0x4c], 0
jbe 0x41711a
push eax
call fcn.00435220
add esp, 4
cmp byte [esi], 0
sete bl
cmp byte [ebp + 0x1c], 0
mov byte [esi], bl
je 0x417149
push 0x40005
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
xor eax, eax
test bl, bl
setne al
add eax, 0x95
push eax
call dword [sym.imp.WINMM.dll_PlaySoundW]
mov bl, 1
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x417161
cmp dword [ebp - 0x64], 0
jbe 0x417161
push eax
call fcn.00435220
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00434307
mov esp, ebp
pop ebp
ret 0x1c
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 8]
lea ecx, [ebx + 0x68]
call fcn.0041aad0
test al, al
jne 0x41711a
xor bl, bl
jmp 0x41714b