Function at 0x45cabc
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 [0x57d54c]
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 [0x581728], eax
je 0x45caf3
mov eax, 0x10dd
jmp 0x45cde2
mov eax, dword [0x581724]
test eax, eax
jne 0x45cde2
test ebx, ebx
jne 0x45cb0c
push 6
pop eax
jmp 0x45cde2
mov ecx, dword [ebx]
test ecx, ecx
jne 0x45cb25
push 6
pop eax
mov dword [0x581724], eax
mov dword [0x581730], ebx
jmp 0x45cde2
push esi
mov ebx, edi
mov esi, edi
call fcn.0045c67b
mov ecx, 0x420870
mov dword [ebp - 0x7c], eax
call fcn.0045c67b
mov dword [ebp - 0x9c], eax
cmp eax, dword [ebp - 0x7c]
jne 0x45cb58
cmp dword [0x5816a4], ebx
jne 0x45cdd4
jmp 0x45cdb5
push 0x18
call fcn.00502157
pop ecx
mov ecx, dword [ebp - 0x7c]
mov esi, eax
mov dword [ebp - 0x90], esi
call fcn.0045c514
mov ebx, eax
test ebx, ebx
jne 0x45cb7e
push 8
pop edi
jmp 0x45cdb5
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.00504c70
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 0x45cbe1
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, edi
mov dword [ebp - 0x80], ecx
jmp 0x45cbf9
movzx eax, byte [ecx]
push ecx
push edx
lea ecx, [ebp - 0x74]
lea eax, [eax*8 + 0x53d020]
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 0x45cca1
mov ecx, dword [ebp - 0x94]
mov al, byte [ecx]
cmp al, 0xeb
je 0x45cca1
cmp al, 0xe9
je 0x45cca1
cmp al, 0xe0
je 0x45cca1
cmp al, 0xc2
je 0x45cca1
cmp al, 0xc3
je 0x45cca1
cmp al, 0xcc
je 0x45cca1
cmp al, 0xf3
jne 0x45cc66
cmp byte [ecx + 1], 0xc3
je 0x45cca1
cmp al, 0xff
jne 0x45cc70
cmp byte [ecx + 1], 0x25
je 0x45cca1
cmp al, 0x26
je 0x45cc88
cmp al, 0x2e
je 0x45cc88
cmp al, 0x36
je 0x45cc88
cmp al, 0x3e
je 0x45cc88
cmp al, 0x64
je 0x45cc88
cmp al, 0x65
jne 0x45cc94
cmp byte [ecx + 1], 0xff
jne 0x45cc94
cmp byte [ecx + 2], 0x25
je 0x45cca1
cmp edx, 5
jae 0x45ccdd
mov eax, dword [ebp - 0x80]
jmp 0x45cb96
cmp edx, 5
jae 0x45ccdd
mov esi, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x80]
call fcn.0045c18c
test eax, eax
je 0x45ccc8
add ecx, eax
mov edx, ecx
sub edx, esi
mov dword [ebp - 0x88], edx
cmp edx, 5
jb 0x45ccac
jmp 0x45ccce
mov edx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x90]
cmp edx, 5
jb 0x45cda9
cmp dword [ebp - 0x8c], 8
ja 0x45cda9
mov eax, dword [ebp - 0x84]
lea ecx, [ebx + 0x1e]
cmp eax, ecx
jbe 0x45ccf8
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.00504dd0
mov eax, dword [ebp - 0x88]
add esp, 0xc
cmp eax, 0x19
jbe 0x45cd21
push 6
jmp 0x45cb78
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.0045c163
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 0x45cd7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x90]
mov edi, eax
jmp 0x45cdb5
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 [0x58173c]
mov dword [ecx], eax
xor eax, eax
mov dword [0x58173c], ecx
jmp 0x45cde1
cmp dword [0x5816a4], 0
push 9
pop edi
jne 0x45cdbb
mov dword [0x581724], edi
test ebx, ebx
je 0x45cdc6
mov ecx, ebx
call fcn.0045c656
test esi, esi
je 0x45cdd4
push 0x18
push esi
call fcn.00502404
pop ecx
pop ecx
mov eax, dword [ebp - 0x98]
mov dword [0x581730], eax
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00501e95
leave
ret 0xc