Function at 0x10033c30
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x1c
push esi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1005b980], eax
je 0x10033c4e
mov eax, 0x10dd
pop esi
add esp, 0x1c
ret
mov eax, dword [0x1005b984]
cmp eax, esi
jne 0x10033e74
mov ecx, dword [0x1005b968]
cmp ecx, esi
jne 0x10033c7e
mov eax, 6
mov dword [0x1005b984], eax
mov dword [0x1005b988], 0x1005b968
pop esi
add esp, 0x1c
ret
push ebx
push ebp
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
call fcn.10033760
mov ecx, 0x10030490
mov edi, eax
call fcn.10033760
mov dword [esp + 0x28], eax
cmp eax, edi
jne 0x10033cb3
cmp dword [0x1005b978], esi
jne 0x10033e65
jmp 0x10033e41
push 0x18
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, esi
jne 0x10033ccf
mov esi, 8
jmp 0x10033e41
mov eax, edi
call fcn.10033540
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x10033ce8
mov esi, 8
jmp 0x10033e41
xor ecx, ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov ebx, eax
add eax, 0x1e
mov esi, edi
mov dword [esp + 0x24], eax
jmp 0x10033d04
mov ebx, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x20]
mov ecx, esi
mov ebp, esi
mov dword [esp + 0x20], 0
call fcn.10033fa0
mov esi, eax
mov eax, dword [esp + 0x1c]
sub eax, ebp
add eax, esi
add ebx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ebx
mov cl, byte [esp + 0x14]
sub cl, al
add cl, cl
mov ebx, esi
add cl, cl
sub ebx, edi
mov dl, bl
add cl, cl
and dl, 7
xor cl, dl
mov byte [eax + 0x38], cl
mov ecx, ebp
call fcn.100332d0
test eax, eax
jne 0x10033d5a
cmp ebx, 5
jb 0x10033d00
jmp 0x10033d7a
cmp ebx, 5
jae 0x10033d7a
nop
cmp byte [esi], 0x90
jne 0x10033d71
inc esi
mov ebx, esi
sub ebx, edi
cmp ebx, 5
jb 0x10033d60
jmp 0x10033d7a
cmp ebx, 5
jb 0x10033e33
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
cmp eax, esi
jbe 0x10033d87
int3
mov ecx, dword [esp + 0x10]
sub al, cl
push ebx
mov byte [ecx + 0x36], bl
add ecx, 0x20
push edi
push ecx
mov byte [esi], al
call sub.MSVCR90.dll_memcpy
add esp, 0xc
cmp ebx, 0x19
jbe 0x10033daf
mov esi, 6
jmp 0x10033e41
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov dword [edx + 0x44], eax
movzx eax, byte [esi]
add eax, edx
lea ecx, [ebx + edi]
mov dword [edx + 0x40], ecx
lea edx, [eax + 5]
mov byte [eax], 0xe9
inc eax
sub ecx, edx
mov dword [eax], ecx
lea ecx, [eax + 4]
mov eax, esi
call fcn.100332a0
lea ecx, [esp + 0x20]
push ecx
push 0x40
push ebx
xor esi, esi
push edi
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10033dfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10033e41
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [eax + 0xc], edi
pop edi
mov dword [eax + 4], esi
mov dword [eax + 0x10], edx
mov edx, dword [0x1005b990]
mov dword [eax + 8], 0x1005b968
mov ecx, dword [esp + 0x1c]
pop ebp
pop ebx
mov dword [eax + 0x14], ecx
mov dword [eax], edx
mov dword [0x1005b990], eax
xor eax, eax
pop esi
add esp, 0x1c
ret
cmp dword [0x1005b978], 0
mov esi, 9
jne 0x10033e47
mov dword [0x1005b984], esi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x10033e54
call fcn.100336c0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10033e65
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop ebp
mov dword [0x1005b988], 0x1005b968
mov eax, esi
pop ebx
pop esi
add esp, 0x1c
ret