Function at 0x10077344
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor edi, edi
test ebp, ebp
je 0x10077356
mov dword [ebp], edi
mov esi, dword [esp + 0x24]
test esi, esi
je 0x10077360
mov dword [esi], edi
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x1007736a
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100d3844], eax
je 0x10077382
mov eax, 0x10dd
jmp 0x10077572
mov eax, dword [0x100d3848]
test eax, eax
jne 0x10077572
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x1007739f
push 6
pop eax
jmp 0x10077572
mov ecx, dword [eax]
test ecx, ecx
jne 0x100773ba
push 6
pop ecx
mov dword [0x100d384c], eax
mov eax, ecx
mov dword [0x100d3848], ecx
jmp 0x10077572
push ecx
call fcn.10077309
pop ecx
mov dword [esp + 0x20], eax
cmp dword [esp + 0x1c], edi
jne 0x100773cf
xor ecx, ecx
jmp 0x100773df
push dword [esp + 0x1c]
call fcn.10077309
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
test esi, esi
je 0x100773e9
mov dword [esi], eax
test ebx, ebx
je 0x100773ef
mov dword [ebx], ecx
push 0x18
call fcn.1007c352
mov ebx, eax
pop ecx
test ebx, ebx
je 0x1007740d
push dword [esp + 0x20]
call fcn.100771db
mov edi, eax
pop ecx
test edi, edi
jne 0x10077415
push 8
pop esi
jmp 0x10077541
test ebp, ebp
je 0x1007741c
mov dword [ebp], edi
mov ebp, dword [esp + 0x20]
xor eax, eax
mov esi, ebp
and dword [esp + 0x20], 0
lea ecx, [esp + 0x20]
push ecx
push 0
push esi
add eax, edi
mov dword [esp + 0x1c], esi
push eax
call fcn.10077d6b
cmp dword [esp + 0x20], 0
mov esi, eax
jne 0x10077535
push dword [esp + 0x10]
mov ecx, esi
sub ecx, ebp
mov dword [esp + 0x20], ecx
call fcn.10077225
test eax, eax
mov eax, dword [esp + 0x20]
pop ecx
jne 0x10077469
cmp eax, 5
jl 0x10077424
cmp eax, 5
jl 0x10077535
cmp eax, 0x12
jbe 0x1007747b
push 6
jmp 0x1007740f
mov ecx, dword [esp + 0x24]
lea edx, [eax + edi]
mov dword [edi + 0x18], esi
lea esi, [edi + 0x17]
mov byte [esi], al
mov dword [edi + 0x1c], ecx
lea ecx, [edx + 5]
mov byte [edx], 0xe9
mov eax, dword [edi + 0x18]
sub eax, ecx
mov dword [edx + 1], eax
lea eax, [edx + 5]
push esi
push eax
call fcn.100772da
and dword [esp + 0x30], 0
lea eax, [esp + 0x30]
pop ecx
pop ecx
mov ecx, dword [esp + 0x1c]
push eax
push 0x40
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100774cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10077541
push ebp
call fcn.10077274
mov esi, eax
pop ecx
test esi, esi
je 0x1007750c
mov eax, 0x6544
cmp word [esi + 0x1c], ax
je 0x1007750c
and dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
push 0x40
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100774c3
mov dword [esi + 0x1c], 0x6f746544
mov dword [esi + 0x20], 0x21737275
mov eax, dword [esp + 0x18]
and dword [ebx + 4], 0
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edi
mov dword [ebx + 0xc], ebp
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x14], eax
mov eax, dword [0x100d3854]
mov dword [ebx], eax
xor eax, eax
mov dword [0x100d3854], ebx
jmp 0x10077572
cmp dword [0x100d3840], 0
push 9
pop esi
jne 0x1007754b
mov dword [0x100d3848], esi
test edi, edi
je 0x10077559
mov eax, dword [0x100d383c]
mov dword [edi + 0x18], eax
mov dword [0x100d383c], edi
test ebx, ebx
je 0x10077567
push 0x18
push ebx
call fcn.1007c382
pop ecx
pop ecx
mov eax, dword [esp + 0x18]
mov dword [0x100d384c], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14