Function at 0x45990c
Capabilities:
Allocate or change rwx memory
Check for software breakpoints
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x57c54c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push edi
mov dword [ebp - 0x98], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5806b4], eax
je 0x459943
mov eax, 0x10dd
jmp 0x459c32
mov eax, dword [0x5806b0]
test eax, eax
jne 0x459c32
test ebx, ebx
jne 0x45995c
push 6
pop eax
jmp 0x459c32
mov ecx, dword [ebx]
test ecx, ecx
jne 0x459975
push 6
pop eax
mov dword [0x5806b0], eax
mov dword [0x5806bc], ebx
jmp 0x459c32
push esi
mov ebx, edi
mov esi, edi
call fcn.004594cb
mov ecx, 0x41fef0
mov dword [ebp - 0x7c], eax
call fcn.004594cb
mov dword [ebp - 0x9c], eax
cmp eax, dword [ebp - 0x7c]
jne 0x4599a8
cmp dword [0x58062c], ebx
jne 0x459c24
jmp 0x459c05
push 0x18
call fcn.00500e07
pop ecx
mov ecx, dword [ebp - 0x7c]
mov esi, eax
mov dword [ebp - 0x90], esi
call fcn.00459364
mov ebx, eax
test ebx, ebx
jne 0x4599ce
push 8
pop edi
jmp 0x459c05
mov eax, dword [ebp - 0x7c]
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x3c], edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x8c], edi
push 0x6c
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x74]
push edi
push eax
call fcn.00503920
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x78]
mov dword [ebp - 0x4c], edi
add esp, 0xc
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x84]
test eax, eax
mov dword [ebp - 0x78], edi
cmovne edx, eax
test ecx, ecx
jne 0x459a31
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, edi
mov dword [ebp - 0x80], ecx
jmp 0x459a49
movzx eax, byte [ecx]
push ecx
push edx
lea ecx, [ebp - 0x74]
lea eax, [eax*8 + 0x53c010]
push eax
call dword [eax + 4]
mov ecx, eax
mov dword [ebp - 0x80], eax
mov eax, ecx
mov edx, ecx
sub eax, dword [ebp - 0x94]
add eax, dword [ebp - 0x78]
add dword [ebp - 0x84], eax
sub edx, dword [ebp - 0x7c]
mov cl, byte [ebp - 0x84]
mov al, dl
sub cl, bl
mov dword [ebp - 0x88], edx
and al, 7
shl cl, 3
or cl, al
mov eax, dword [ebp - 0x8c]
mov byte [ebx + eax + 0x38], cl
inc eax
mov dword [ebp - 0x8c], eax
cmp eax, 8
jae 0x459af1
mov ecx, dword [ebp - 0x94]
mov al, byte [ecx]
cmp al, 0xeb
je 0x459af1
cmp al, 0xe9
je 0x459af1
cmp al, 0xe0
je 0x459af1
cmp al, 0xc2
je 0x459af1
cmp al, 0xc3
je 0x459af1
cmp al, 0xcc
je 0x459af1
cmp al, 0xf3
jne 0x459ab6
cmp byte [ecx + 1], 0xc3
je 0x459af1
cmp al, 0xff
jne 0x459ac0
cmp byte [ecx + 1], 0x25
je 0x459af1
cmp al, 0x26
je 0x459ad8
cmp al, 0x2e
je 0x459ad8
cmp al, 0x36
je 0x459ad8
cmp al, 0x3e
je 0x459ad8
cmp al, 0x64
je 0x459ad8
cmp al, 0x65
jne 0x459ae4
cmp byte [ecx + 1], 0xff
jne 0x459ae4
cmp byte [ecx + 2], 0x25
je 0x459af1
cmp edx, 5
jae 0x459b2d
mov eax, dword [ebp - 0x80]
jmp 0x4599e6
cmp edx, 5
jae 0x459b2d
mov esi, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x80]
call fcn.00458fdc
test eax, eax
je 0x459b18
add ecx, eax
mov edx, ecx
sub edx, esi
mov dword [ebp - 0x88], edx
cmp edx, 5
jb 0x459afc
jmp 0x459b1e
mov edx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x90]
cmp edx, 5
jb 0x459bf9
cmp dword [ebp - 0x8c], 8
ja 0x459bf9
mov eax, dword [ebp - 0x84]
lea ecx, [ebx + 0x1e]
cmp eax, ecx
jbe 0x459b48
int3
sub al, bl
mov byte [ebx + 0x36], dl
push edx
push dword [ebp - 0x7c]
mov byte [ecx], al
lea eax, [ebx + 0x20]
push eax
call fcn.00503a80
mov eax, dword [ebp - 0x88]
add esp, 0xc
cmp eax, 0x19
jbe 0x459b71
push 6
jmp 0x4599c8
mov esi, dword [ebp - 0x7c]
lea edx, [ebx + 0x1e]
movzx ecx, byte [edx]
add esi, eax
mov eax, dword [ebp - 0x9c]
add ecx, ebx
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x40], esi
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub esi, eax
mov dword [ecx + 1], esi
add ecx, 5
call fcn.00458fb3
mov esi, dword [ebp - 0x7c]
lea eax, [ebp - 8]
push eax
push 0x40
push dword [ebp - 0x88]
mov dword [ebp - 8], edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x459bca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x90]
mov edi, eax
jmp 0x459c05
mov ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x98]
mov dword [ecx + 8], eax
mov dword [ecx + 4], edi
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0xc], esi
mov eax, dword [ebp - 8]
mov dword [ecx + 0x14], eax
mov eax, dword [0x5806c8]
mov dword [ecx], eax
xor eax, eax
mov dword [0x5806c8], ecx
jmp 0x459c31
cmp dword [0x58062c], 0
push 9
pop edi
jne 0x459c0b
mov dword [0x5806b0], edi
test ebx, ebx
je 0x459c16
mov ecx, ebx
call fcn.004594a6
test esi, esi
je 0x459c24
push 0x18
push esi
call fcn.005010b4
pop ecx
pop ecx
mov eax, dword [ebp - 0x98]
mov dword [0x5806bc], eax
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00500b45
leave
ret 0xc