Function at 0x41b85c
Capabilities:
Allocate or change rwx memory
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x578040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, edx
mov ebx, ecx
push esi
xor esi, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], ebx
test eax, eax
jne 0x41b886
push 0x57
pop eax
jmp 0x41bb0d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x60b2c8], eax
je 0x41b89e
mov eax, 0x10dd
jmp 0x41bb0d
mov eax, dword [0x60b17c]
test eax, eax
jne 0x41bb0d
test ebx, ebx
jne 0x41b8b3
push 6
jmp 0x41b880
mov ecx, dword [ebx]
test ecx, ecx
jne 0x41b8cc
push 6
pop eax
mov dword [0x60b17c], eax
mov dword [0x60b2d0], ebx
jmp 0x41bb0d
push edi
mov ebx, esi
mov edi, esi
call fcn.0041b3c7
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
call fcn.0041b3c7
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 0x10]
jne 0x41b8fa
cmp dword [0x607c88], ebx
jne 0x41bb02
jmp 0x41bae3
push 0x18
call fcn.0054b68b
pop ecx
mov ecx, dword [ebp - 0x10]
mov edi, eax
mov dword [ebp - 0x34], edi
call fcn.0041b29d
mov ebx, eax
test ebx, ebx
jne 0x41b91d
push 8
pop esi
jmp 0x41bae3
mov edi, dword [ebp - 0x10]
lea eax, [ebx + 0x38]
mov dword [eax], esi
mov ecx, edi
mov dword [ebp - 0x28], eax
mov dword [eax + 4], esi
mov eax, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esi
jmp 0x41b93a
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0xc]
mov dword [ebp - 0x2c], ecx
push edx
push ecx
push ecx
mov ecx, eax
mov dword [ebp - 0xc], esi
call fcn.0041bb1d
mov ecx, dword [ebp - 0x14]
mov edx, eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x2c]
add eax, edx
mov dword [ebp - 0x18], edx
add ecx, eax
sub edx, edi
mov dword [ebp - 0x14], ecx
mov al, dl
sub cl, bl
mov dword [ebp - 0x20], edx
shl cl, 3
and al, 7
or cl, al
mov eax, dword [ebp - 0x28]
mov byte [eax], cl
mov ecx, dword [ebp - 0x1c]
inc ecx
inc eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], eax
cmp ecx, 8
jae 0x41b9de
mov ecx, dword [ebp - 0x2c]
mov al, byte [ecx]
cmp al, 0xeb
je 0x41b9de
cmp al, 0xe9
je 0x41b9de
cmp al, 0xe0
je 0x41b9de
cmp al, 0xc2
je 0x41b9de
cmp al, 0xc3
je 0x41b9de
cmp al, 0xcc
je 0x41b9de
cmp al, 0xf3
jne 0x41ba09
cmp byte [ecx + 1], 0xc3
je 0x41b9de
cmp al, 0x26
je 0x41b9c6
cmp al, 0x2e
je 0x41b9c6
cmp al, 0x36
je 0x41b9c6
cmp al, 0x3e
je 0x41b9c6
cmp al, 0x64
je 0x41b9c6
cmp al, 0x65
jne 0x41b9d2
cmp byte [ecx + 1], 0xff
jne 0x41b9d2
cmp byte [ecx + 2], 0x25
je 0x41b9de
mov ecx, dword [ebp - 0x18]
cmp edx, 5
jb 0x41b937
mov edi, dword [ebp - 0x34]
cmp edx, 5
jae 0x41ba13
mov ecx, dword [ebp - 0x18]
call fcn.0041aeb7
test eax, eax
je 0x41bad7
add ecx, eax
mov eax, dword [ebp - 0x10]
mov edx, ecx
sub edx, eax
mov dword [ebp - 0x20], edx
cmp edx, 5
jb 0x41b9e9
jmp 0x41ba16
cmp al, 0xff
jne 0x41b9ae
cmp byte [ecx + 1], 0x25
jmp 0x41b9d0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x1c], 8
ja 0x41bad7
lea ecx, [ebx + 0x1e]
cmp dword [ebp - 0x14], ecx
jbe 0x41ba29
int3
mov ecx, dword [ebp - 0x14]
push edx
push eax
lea eax, [ebx + 0x20]
mov byte [ebx + 0x36], dl
sub cl, bl
push eax
mov byte [ebx + 0x1e], cl
call fcn.0054d870
mov eax, dword [ebp - 0x20]
add esp, 0xc
cmp eax, 0x19
jbe 0x41ba51
push 6
jmp 0x41b917
movzx ecx, byte [ebx + 0x1e]
mov edx, dword [ebp - 0x10]
add ecx, ebx
add edx, eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x40], edx
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub edx, eax
lea eax, [ebx + 0x1e]
mov dword [ecx + 1], edx
add ecx, 5
cmp ecx, eax
jae 0x41ba8b
sub eax, ecx
push eax
push 0xcc
push ecx
call fcn.0054d6d0
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 0x40
push dword [ebp - 0x20]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41baae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x41bae3
mov eax, dword [ebp - 0x30]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0xc], eax
mov dword [edi + 4], esi
mov dword [edi + 0x10], ebx
mov eax, dword [ebp - 8]
mov dword [edi + 0x14], eax
mov eax, dword [0x60b2dc]
mov dword [edi], eax
xor eax, eax
mov dword [0x60b2dc], edi
jmp 0x41bb0c
cmp dword [0x607c88], 0
push 9
pop esi
jne 0x41baed
mov dword [0x60b17c], esi
test ebx, ebx
je 0x41baf4
mov ecx, ebx
call fcn.0041b3a4
test edi, edi
je 0x41bb02
push 0x18
push edi
call fcn.0054b6bb
pop ecx
pop ecx
mov eax, dword [ebp - 0x30]
mov dword [0x60b2d0], eax
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0054b598
leave
ret 0xc