Function at 0x4402e1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x543720]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 0x40e680
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x28], ebx
test eax, eax
jne 0x44030b
push 0x57
pop eax
jmp 0x440557
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x548f5c], eax
je 0x440323
mov eax, 0x10dd
jmp 0x440557
mov eax, dword [0x548f60]
test eax, eax
jne 0x440557
test ebx, ebx
jne 0x440338
push 6
jmp 0x440305
mov ecx, dword [ebx]
test ecx, ecx
jne 0x440351
push 6
pop eax
mov dword [0x548f60], eax
mov dword [0x548f40], ebx
jmp 0x440557
push edi
mov ebx, esi
mov edi, esi
call fcn.0043fe8d
mov ecx, 0x40e680
mov dword [ebp - 0x10], eax
call fcn.0043fe8d
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x10]
jne 0x440381
cmp dword [0x548f58], ebx
jne 0x44054c
jmp 0x440530
push 0x18
call fcn.004e0c29
mov edi, eax
mov dword [ebp - 0x2c], edi
pop ecx
test edi, edi
jne 0x44039a
push 8
pop esi
jmp 0x440530
mov ecx, dword [ebp - 0x10]
call fcn.0043fd29
mov ebx, eax
test ebx, ebx
je 0x440392
mov edi, dword [ebp - 0x10]
lea ecx, [ebx + 0x1e]
mov dword [ebx + 0x38], esi
mov edx, edi
mov dword [ebx + 0x3c], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x24], edx
push ecx
push ecx
push edx
mov ecx, eax
mov dword [ebp - 0xc], esi
call fcn.00440699
mov edx, dword [ebp - 0x18]
mov ecx, eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x24]
add eax, ecx
mov dword [ebp - 0x30], ecx
add edx, eax
sub ecx, edi
mov dword [ebp - 0x18], edx
mov al, cl
sub dl, bl
mov dword [ebp - 0x14], ecx
and al, 7
shl dl, 3
xor dl, al
mov eax, dword [ebp - 0x1c]
mov byte [ebx + eax + 0x38], dl
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, 8
jae 0x440421
mov ecx, dword [ebp - 0x24]
call fcn.0043f937
mov ecx, dword [ebp - 0x14]
test eax, eax
jne 0x440421
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
cmp ecx, 5
jb 0x4403bf
mov edi, dword [ebp - 0x2c]
cmp ecx, 5
jae 0x44045c
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x30]
mov ecx, edi
call fcn.0043f990
test eax, eax
je 0x44044a
add edi, eax
mov ecx, edi
sub ecx, esi
mov dword [ebp - 0x14], ecx
cmp ecx, 5
jb 0x44042f
jmp 0x44044d
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x2c]
push 0
pop esi
cmp ecx, 5
jb 0x440524
cmp dword [ebp - 0x1c], 8
ja 0x440524
mov eax, dword [ebp - 0x18]
lea edx, [ebx + 0x1e]
cmp eax, edx
jbe 0x440471
int3
sub al, bl
mov byte [ebx + 0x36], cl
push ecx
push dword [ebp - 0x10]
mov byte [edx], al
lea eax, [ebx + 0x20]
push eax
call fcn.004e4510
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, 0x19
jbe 0x440497
push 6
jmp 0x440394
movzx ecx, byte [ebx + 0x1e]
mov edx, dword [ebp - 0x10]
add ecx, ebx
add edx, eax
mov eax, dword [ebp - 0x20]
and dword [ebp - 0x20], 0
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], eax
lea eax, [ecx + 5]
sub edx, eax
mov byte [ecx], 0xe9
mov dword [ecx + 1], edx
mov eax, esi
add ecx, 5
lea edx, [ebx + 0x1e]
sub edx, ecx
cmp ecx, dword [ebp - 0x34]
cmova edx, dword [ebp - 0x20]
test edx, edx
je 0x4404d8
mov byte [ecx], 0xcc
inc ecx
inc eax
cmp eax, edx
jb 0x4404cf
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 0x40
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4404fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x440530
mov eax, dword [ebp - 0x28]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0xc], eax
mov dword [edi + 4], esi
mov dword [edi + 0x10], ebx
mov eax, dword [ebp - 8]
mov dword [edi + 0x14], eax
mov eax, dword [0x548f50]
mov dword [edi], eax
xor eax, eax
mov dword [0x548f50], edi
jmp 0x440556
cmp dword [0x548f58], 0
push 9
pop esi
jne 0x440536
mov dword [0x548f60], esi
test ebx, ebx
je 0x440541
mov ecx, ebx
call fcn.0043fe68
test edi, edi
je 0x44054c
push edi
call fcn.004e03e4
pop ecx
mov eax, dword [ebp - 0x28]
mov dword [0x548f40], eax
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004e03e9
mov esp, ebp
pop ebp
ret 0xc