Function at 0x1003c720
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x10c
mov byte [ebp + 0x73], 0
movzx eax, byte [0x100e0b44]
test eax, eax
je 0x1003c741
mov al, 1
jmp 0x1003c9e7
push 0
push 0x1007ba18
call fcn.1004ba60
mov dword [0x100e0b40], eax
cmp dword [0x100e0b40], 0
je 0x1003c9e4
push 0
push 0x1007bad8
call fcn.1004b930
mov dword [ebp + 0x6c], eax
cmp dword [ebp + 0x6c], 0
jne 0x1003c783
push 0
push 0x1007bac4
call fcn.1004b930
mov dword [ebp + 0x6c], eax
mov ecx, dword [ebp + 0x6c]
push ecx
lea ecx, [ebp - 0x94]
call fcn.1004c790
mov dword [ebp + 0x74], 0
jmp 0x1003c7a4
mov edx, dword [ebp + 0x74]
add edx, 1
mov dword [ebp + 0x74], edx
mov eax, dword [ebp + 0x20]
mov dword [ebp + 0x40], eax
mov ecx, dword [ebp + 0x74]
cmp ecx, dword [ebp + 0x40]
jge 0x1003c9d9
imul edx, dword [ebp + 0x74], 0x1c
mov eax, dword [ebp + 0x1c]
cmp dword [eax + edx + 0x14], 0
jne 0x1003c7d6
imul ecx, dword [ebp + 0x74], 0x1c
mov edx, dword [ebp + 0x1c]
cmp dword [edx + ecx + 0x18], 0
je 0x1003c9d4
imul eax, dword [ebp + 0x74], 0x1c
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + eax + 0xc]
cmp edx, dword [0x100e0b40]
jne 0x1003c9d4
imul eax, dword [ebp + 0x74], 0x1c
mov ecx, dword [ebp + 0x1c]
cmp dword [ecx + eax + 0x10], 0
je 0x1003c88c
imul edx, dword [ebp + 0x74], 0x1c
add edx, dword [ebp + 0x1c]
mov dword [ebp + 0x4c], edx
imul eax, dword [ebp + 0x74], 0x1c
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x4c]
mov edx, dword [edx + 0xc]
sub edx, dword [ecx + eax + 0x14]
sub edx, 4
mov dword [ebp + 0x44], edx
imul eax, dword [ebp + 0x74], 0x1c
add eax, dword [ebp + 0x1c]
mov dword [ebp + 0x54], eax
lea ecx, [ebp + 0x58]
push ecx
push 0x40
push 4
mov edx, dword [ebp + 0x54]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1003c887
imul ecx, dword [ebp + 0x74], 0x1c
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + ecx + 0x14]
mov dword [0x100e0b30], eax
mov ecx, dword [0x100e0b30]
mov edx, dword [ecx]
mov dword [0x100e0b34], edx
mov eax, dword [0x100e0b30]
mov ecx, dword [ebp + 0x44]
mov dword [eax], ecx
lea edx, [ebp + 0x58]
push edx
mov eax, dword [ebp + 0x58]
push eax
push 4
imul ecx, dword [ebp + 0x74], 0x1c
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + ecx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1003c9a1
imul ecx, dword [ebp + 0x74], 0x1c
mov edx, dword [ebp + 0x1c]
cmp dword [edx + ecx + 0x18], 0
je 0x1003c932
push 0
push 4
call fcn.1004ae10
add esp, 8
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x68]
mov dword [eax], 0x1003b860
imul ecx, dword [ebp + 0x74], 0x1c
add ecx, dword [ebp + 0x1c]
mov dword [ebp + 0x50], ecx
lea edx, [ebp + 0x5c]
push edx
push 0x40
push 4
mov eax, dword [ebp + 0x50]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1003c91e
imul edx, dword [ebp + 0x74], 0x1c
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + edx + 0x18]
mov dword [0x100e0b38], ecx
mov edx, dword [0x100e0b38]
mov eax, dword [edx]
mov dword [0x100e0b3c], eax
mov ecx, dword [0x100e0b38]
mov edx, dword [ebp + 0x68]
mov dword [ecx], edx
lea eax, [ebp + 0x5c]
push eax
mov ecx, dword [ebp + 0x5c]
push ecx
push 4
imul edx, dword [ebp + 0x74], 0x1c
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + edx + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp + 0x3c]
push edx
push 0x20
push 4
mov eax, dword [ebp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1003c9a1
imul ecx, dword [ebp + 0x74], 0x1c
add ecx, dword [ebp + 0x1c]
mov dword [ebp + 0x48], ecx
lea edx, [ebp + 0x60]
push edx
push 0x40
push 4
mov eax, dword [ebp + 0x48]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1003c9a1
imul edx, dword [ebp + 0x74], 0x1c
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + edx + 0x14]
mov dword [0x100e0b38], ecx
mov edx, dword [0x100e0b38]
mov eax, dword [edx]
mov dword [0x100e0b3c], eax
imul ecx, dword [ebp + 0x74], 0x1c
mov edx, dword [ebp + 0x1c]
mov eax, dword [0x100e0b38]
mov ecx, dword [edx + ecx + 0xc]
mov dword [eax], ecx
lea edx, [ebp + 0x60]
push edx
mov eax, dword [ebp + 0x60]
push eax
push 4
imul ecx, dword [ebp + 0x74], 0x1c
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + ecx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [0x100e0b38], 0
jne 0x1003c9bc
cmp dword [0x100e0b30], 0
jne 0x1003c9bc
mov dword [ebp + 0x64], 0
jmp 0x1003c9c3
mov dword [ebp + 0x64], 1
mov cl, byte [ebp + 0x64]
mov byte [ebp + 0x73], cl
mov dl, byte [ebp + 0x73]
mov byte [0x100e0b44], dl
jmp 0x1003c9d9
jmp 0x1003c79b
lea ecx, [ebp - 0x94]
call fcn.1004c860
mov al, byte [ebp + 0x73]
add ebp, 0x78
mov esp, ebp
pop ebp
ret