Function at 0x445c69
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push esi
push edi
mov eax, dword [0x45079c]
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x2e4], 0
push 0x4413a4
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x450508], eax
call fcn.0044632e
sub eax, 6
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x2e0]
push edx
lea eax, [ebp - 0x1dc]
push eax
push 0
call fcn.004456e3
add esp, 0x10
test eax, eax
je 0x446312
mov ecx, dword [0x450508]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1dc]
and edx, 0xff
test edx, edx
je 0x445d01
lea ecx, [ebp - 0x334]
call fcn.00444bc0
lea ecx, [ebp - 0x334]
call fcn.00444bdf
push 0x1c4
lea eax, [ebp - 0x1dc]
push eax
push 0x450338
call fcn.00449d60
add esp, 0xc
mov byte [ebp - 0x314], 4
mov byte [ebp - 0x313], 8
mov byte [ebp - 0x312], 0
mov byte [ebp - 0x311], 0
mov byte [ebp - 0x310], 0xc8
mov byte [ebp - 0x30f], 0
mov byte [ebp - 0x30e], 0
mov byte [ebp - 0x30d], 0
mov byte [ebp - 0x30c], 0x18
mov byte [ebp - 0x30b], 0x61
mov byte [ebp - 0x30a], 0xe
mov byte [ebp - 0x309], 0
mov byte [ebp - 0x308], 0x22
mov byte [ebp - 0x307], 0
mov byte [ebp - 0x306], 0
mov byte [ebp - 0x305], 0
mov byte [ebp - 0x304], 0x90
mov byte [ebp - 0x303], 0x66
mov byte [ebp - 0x302], 0xe
mov byte [ebp - 0x301], 0
mov byte [ebp - 0x300], 0xe8
mov byte [ebp - 0x2ff], 2
mov byte [ebp - 0x2fe], 0
mov byte [ebp - 0x2fd], 0
mov byte [ebp - 0x2fc], 0
mov byte [ebp - 0x2fb], 0
mov byte [ebp - 0x2fa], 0
mov byte [ebp - 0x2f9], 0
mov byte [ebp - 0x2f8], 0
mov byte [ebp - 0x2f7], 0
mov byte [ebp - 0x2f6], 0
mov byte [ebp - 0x2f5], 0
push 0x1c4
lea ecx, [ebp - 0x314]
push ecx
push 0x64
push 0x450338
call fcn.004496fd
add esp, 0x10
mov edx, dword [ebp - 0x1d0]
and edx, 0xff
test edx, edx
je 0x445e4f
mov eax, dword [ebp - 0x1da]
and eax, 0xff
cmp eax, 2
je 0x445e4f
sub esp, 0x1c4
mov ecx, 0x71
mov esi, 0x450338
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call dword [0x45072c]
mov ecx, dword [ebp - 4]
sub ecx, 0x1c4
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x1d4]
and edx, 0xff
test edx, edx
je 0x445ebb
mov eax, dword [0x450abc]
push eax
call fcn.0044fe60
add esp, 4
mov dword [ebp - 0x338], eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x338]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x338]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [0x450abc]
push edx
call fcn.0044fde0
add esp, 0x10
mov dword [ebp - 4], eax
jmp 0x445ee8
push 4
push 0x1000
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [0x450abc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00449d60
add esp, 0xc
cmp dword [0x450318], 0
je 0x445f05
push 0x8000
push 0
mov ecx, dword [0x450abc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea edx, [ebp - 0x2e0]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x2e4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004463ce
add esp, 0x18
test eax, eax
jne 0x445f47
push 0x8000
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x446328
push 0x8000
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x32c], eax
call fcn.00445c44
mov dword [0x450504], eax
mov dword [ebp - 0x2ec], 0x450abc
mov dword [ebp - 0x31c], 0x450504
lea ecx, [ebp - 0x10]
push ecx
push 0x40
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x2e8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x445fa4
xor eax, eax
jmp 0x446328
push 0x40
push 0x1000
push 0x64
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x450330], eax
mov dword [ebp - 0x328], 0
mov ecx, dword [0x450330]
add ecx, dword [ebp - 0x328]
mov byte [ecx], 0x6a
mov edx, dword [ebp - 0x328]
add edx, 1
mov dword [ebp - 0x328], edx
mov eax, dword [0x450330]
add eax, dword [ebp - 0x328]
mov byte [eax], 0
mov ecx, dword [ebp - 0x328]
add ecx, 1
mov dword [ebp - 0x328], ecx
mov edx, dword [0x450330]
add edx, dword [ebp - 0x328]
mov byte [edx], 0x68
mov eax, dword [ebp - 0x328]
add eax, 1
mov dword [ebp - 0x328], eax
push 4
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [0x450330]
add edx, dword [ebp - 0x328]
push edx
call fcn.00449d60
add esp, 0xc
mov eax, dword [ebp - 0x328]
add eax, 4
mov dword [ebp - 0x328], eax
mov ecx, dword [0x450330]
add ecx, dword [ebp - 0x328]
mov byte [ecx], 0x68
mov edx, dword [ebp - 0x328]
add edx, 1
mov dword [ebp - 0x328], edx
push 4
push 0x450510
mov eax, dword [0x450330]
add eax, dword [ebp - 0x328]
push eax
call fcn.00449d60
add esp, 0xc
mov ecx, dword [ebp - 0x328]
add ecx, 4
mov dword [ebp - 0x328], ecx
mov edx, dword [0x450330]
add edx, dword [ebp - 0x328]
mov byte [edx], 0x68
mov eax, dword [ebp - 0x328]
add eax, 1
mov dword [ebp - 0x328], eax
push 4
lea ecx, [ebp - 0x2e8]
push ecx
mov edx, dword [0x450330]
add edx, dword [ebp - 0x328]
push edx
call fcn.00449d60
add esp, 0xc
mov eax, dword [ebp - 0x328]
add eax, 4
mov dword [ebp - 0x328], eax
mov ecx, dword [0x450330]
add ecx, dword [ebp - 0x328]
mov byte [ecx], 0x68
mov edx, dword [ebp - 0x328]
add edx, 1
mov dword [ebp - 0x328], edx
push 4
lea eax, [ebp - 0x32c]
push eax
mov ecx, dword [0x450330]
add ecx, dword [ebp - 0x328]
push ecx
call fcn.00449d60
add esp, 0xc
mov edx, dword [ebp - 0x328]
add edx, 4
mov dword [ebp - 0x328], edx
mov eax, dword [0x450330]
add eax, dword [ebp - 0x328]
mov byte [eax], 0xff
mov ecx, dword [ebp - 0x328]
add ecx, 1
mov dword [ebp - 0x328], ecx
mov edx, dword [0x450330]
add edx, dword [ebp - 0x328]
mov byte [edx], 0x15
mov eax, dword [ebp - 0x328]
add eax, 1
mov dword [ebp - 0x328], eax
push 4
lea ecx, [ebp - 0x31c]
push ecx
mov edx, dword [0x450330]
add edx, dword [ebp - 0x328]
push edx
call fcn.00449d60
add esp, 0xc
mov eax, dword [ebp - 0x328]
add eax, 4
mov dword [ebp - 0x328], eax
mov ecx, dword [0x450330]
add ecx, dword [ebp - 0x328]
mov byte [ecx], 0x8b
mov edx, dword [ebp - 0x328]
add edx, 1
mov dword [ebp - 0x328], edx
mov eax, dword [0x450330]
add eax, dword [ebp - 0x328]
mov byte [eax], 0xe5
mov ecx, dword [ebp - 0x328]
add ecx, 1
mov dword [ebp - 0x328], ecx
mov edx, dword [0x450330]
add edx, dword [ebp - 0x328]
mov byte [edx], 0x5d
mov eax, dword [ebp - 0x328]
add eax, 1
mov dword [ebp - 0x328], eax
mov ecx, dword [0x450330]
add ecx, dword [ebp - 0x328]
mov byte [ecx], 0x8b
mov edx, dword [ebp - 0x328]
add edx, 1
mov dword [ebp - 0x328], edx
mov eax, dword [0x450330]
add eax, dword [ebp - 0x328]
mov byte [eax], 0xe5
mov ecx, dword [ebp - 0x328]
add ecx, 1
mov dword [ebp - 0x328], ecx
mov edx, dword [0x450330]
add edx, dword [ebp - 0x328]
mov byte [edx], 0x5d
mov eax, dword [ebp - 0x328]
add eax, 1
mov dword [ebp - 0x328], eax
mov ecx, dword [0x450330]
add ecx, dword [ebp - 0x328]
mov byte [ecx], 0xe9
mov edx, dword [ebp - 0x328]
add edx, 1
mov dword [ebp - 0x328], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2f4], eax
mov ecx, dword [0x450330]
sub ecx, dword [ebp - 0x2f4]
sub ecx, 5
mov dword [0x450500], ecx
mov edx, dword [ebp - 0x2f4]
mov dword [ebp - 0x330], edx
mov eax, dword [ebp - 0x1d8]
add eax, dword [0x45079c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [0x450330]
mov edx, dword [ebp - 0x328]
add edx, 4
sub ecx, edx
mov dword [ebp - 0x2f0], ecx
push 4
lea eax, [ebp - 0x2f0]
push eax
mov ecx, dword [0x450330]
add ecx, dword [ebp - 0x328]
push ecx
call fcn.00449d60
add esp, 0xc
mov byte [ebp - 0x324], 0xe9
push 4
push 0x450500
lea edx, [ebp - 0x323]
push edx
call fcn.00449d60
add esp, 0xc
push 0
push 5
lea eax, [ebp - 0x324]
push eax
mov ecx, dword [ebp - 0x330]
push ecx
mov edx, dword [ebp - 0x32c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x318], eax
jmp 0x446326
push 0x10
push 0x4413b4
push 0x4413bc
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret