Function at 0x4075a8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
push edi
mov dword [ebp - 0x14], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x45f1ec], eax
je 0x4075d2
mov eax, 0x10dd
jmp 0x4077bb
mov eax, dword [0x45f1f0]
test eax, eax
jne 0x4077bb
test ebx, ebx
jne 0x4075eb
push 6
pop eax
jmp 0x4077bb
mov ecx, dword [ebx]
push esi
test ecx, ecx
jne 0x407600
push 6
pop edi
mov dword [0x45f1f0], edi
jmp 0x407778
mov esi, edi
mov ebx, edi
call fcn.004071ec
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], eax
call fcn.004071ec
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 4]
jne 0x40762d
cmp dword [0x45f1f4], ebx
jne 0x407775
jmp 0x407759
push 0x18
call fcn.004277c4
mov ebx, eax
mov dword [ebp - 0x20], ebx
pop ecx
test ebx, ebx
jne 0x407646
push 8
pop edi
jmp 0x407759
mov ecx, dword [ebp - 4]
call fcn.00406f84
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x40763e
mov eax, dword [ebp - 4]
mov ebx, edi
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], eax
push ecx
push ecx
lea ecx, [ebx + esi]
mov dword [ebp - 0x10], edi
mov edx, eax
call fcn.004077c3
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x10], edi
jne 0x407695
mov ecx, dword [ebp - 0xc]
mov ebx, eax
sub ebx, dword [ebp - 4]
call fcn.00406f0e
test eax, eax
jne 0x407695
mov eax, dword [ebp - 0x1c]
cmp ebx, 5
jl 0x40765f
mov dword [ebp - 0xc], ebx
cmp ebx, 5
mov ebx, dword [ebp - 0x20]
jge 0x4076b5
cmp dword [0x45f1f4], 0
push 9
pop edi
jne 0x40775f
jmp 0x407759
mov eax, dword [ebp - 0xc]
cmp eax, 0x12
jbe 0x4076c4
push 6
jmp 0x407640
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
add edx, eax
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
add esi, 0x17
mov ecx, dword [ebp - 8]
add ecx, eax
mov byte [esi], al
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub edx, eax
mov eax, edi
and dword [ebp - 0x24], eax
mov dword [ecx + 1], edx
add ecx, 5
mov edx, esi
sub edx, ecx
cmp ecx, esi
cmova edx, dword [ebp - 0x24]
test edx, edx
je 0x407706
mov byte [ecx], 0xcc
inc ecx
inc eax
cmp eax, edx
jb 0x4076fd
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
push 0x40
push dword [ebp - 0xc]
mov dword [ebp - 0x18], edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40774e
mov ecx, esi
call fcn.0040718b
mov esi, eax
test esi, esi
je 0x407790
mov eax, 0x6544
cmp word [esi + 0x1c], ax
je 0x407790
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], edi
push eax
push 0x40
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x407782
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 8]
mov edi, eax
mov dword [0x45f1f0], edi
test esi, esi
je 0x40776a
mov ecx, esi
call fcn.0040716a
test ebx, ebx
je 0x407775
push ebx
call fcn.0042c242
pop ecx
mov ebx, dword [ebp - 0x14]
mov dword [0x45f1d8], ebx
mov eax, edi
jmp 0x4077ba
mov dword [esi + 0x1c], 0x6f746544
mov dword [esi + 0x20], 0x21737275
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0xc], eax
mov dword [ebx + 4], edi
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x14], eax
mov eax, dword [0x45f1e4]
mov dword [ebx], eax
xor eax, eax
mov dword [0x45f1e4], ebx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc