Function at 0x409ba0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cedd
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4b0040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004033a0
test al, al
je 0x409e75
cmp byte [esi], 0
je 0x409e6b
cmp dword [esi + 4], 0
je 0x409e6b
cmp dword [esi + 8], 0
je 0x409e6b
cmp dword [esi + 0xc], 0
je 0x409e6b
xor edi, edi
cmp dword [esi + 0x10], edi
jbe 0x409c20
mov eax, dword [esi + 4]
add eax, edi
push eax
call fcn.00403680
test al, al
jne 0x409e01
inc edi
cmp edi, dword [esi + 0x10]
jb 0x409c07
xor edi, edi
mov eax, dword [esi + 8]
add eax, edi
push eax
call fcn.00403680
test al, al
jne 0x409e01
inc edi
cmp edi, 0x18
jb 0x409c22
xor edi, edi
nop dword [eax]
mov eax, dword [esi + 0xc]
add eax, edi
push eax
call fcn.00403680
test al, al
jne 0x409e01
inc edi
cmp edi, 0x30
jb 0x409c40
mov edi, dword [esi + 4]
xor ecx, ecx
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], ecx
test edi, edi
je 0x409caa
test eax, eax
je 0x409caa
push 0x1c
lea eax, [ebp - 0x30]
mov dword [ebp - 0x18], ecx
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x30], xmm0
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
xor ecx, ecx
cmp eax, 0x1c
mov eax, dword [ebp - 0x54]
cmove ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 4], 0
test edi, edi
je 0x409d8a
test eax, eax
je 0x409d8a
push 0x1c
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x4c], xmm0
movq qword [ebp - 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
jne 0x409d8a
push dword [ebp - 0x40]
push dword [ebp - 0x4c]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x409d8a
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x40
push dword [ebp - 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x409d8a
push dword [esi + 0x10]
push dword [esi + 0x14]
push dword [esi + 4]
call fcn.0041b140
add esp, 0xc
test byte [ebp - 0x5c], 0x70
je 0x409d69
push 0x1c
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x4c], xmm0
movq qword [ebp - 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
jne 0x409d89
push dword [ebp - 0x40]
push dword [ebp - 0x4c]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x409d89
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp - 0x58]
push dword [ebp - 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x409e26
int3
mov byte [ebp - 0x4d], 0
mov ecx, 0x4b1678
call fcn.00403620
test edi, edi
je 0x409dfc
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x409dfc
cmp byte [ebp - 0x60], 0
je 0x409dfc
test byte [ebp - 0x5c], 0x70
je 0x409de6
push 0x1c
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x4c], xmm0
movq qword [ebp - 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
jne 0x409dfc
push dword [ebp - 0x40]
push dword [ebp - 0x4c]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x409dfc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp - 0x58]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp - 0x4d]
jmp 0x409e77
mov ecx, 0x4b1678
call fcn.00403620
mov eax, 0x3b9aca00
pause
sub eax, 1
jne 0x409e10
call fcn.004033a0
test al, al
jne 0x409c00
jmp 0x409e75
mov eax, dword [esi + 0x14]
mov dword [esi + 0x14], 0
test eax, eax
je 0x409e3d
push eax
call fcn.0041882b
add esp, 4
push dword [esi + 0xc]
mov dword [esi + 0x10], 0
call fcn.00404730
push dword [esi + 8]
mov dword [esi + 0xc], 0
call fcn.00404730
mov dword [esi + 8], 0
mov byte [ebp - 0x4d], 1
jmp 0x409d8e
mov ecx, 0x4b1678
call fcn.00403620
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041881d
mov esp, ebp
pop ebp
ret 4