Function at 0x41b470
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, esi
je 0x41b485
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x41b48e
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
cmp eax, esi
je 0x41b497
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x426ec8], eax
je 0x41b4b1
mov eax, 0x10dd
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x426ecc]
cmp eax, esi
jne 0x41b757
mov ecx, dword [ebp + 8]
cmp ecx, esi
jne 0x41b4d1
mov eax, 6
pop esi
mov esp, ebp
pop ebp
ret 0x14
push edi
mov edi, dword [ecx]
cmp edi, esi
jne 0x41b4f0
mov eax, 6
pop edi
mov dword [0x426ecc], eax
mov dword [0x426ed0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov al, byte [edi]
push ebx
mov dword [ebp - 0xc], esi
cmp al, 0xff
jne 0x41b517
cmp byte [edi + 1], 0x25
jne 0x41b517
mov ebx, dword [edi + 2]
mov edx, ebx
mov ecx, edi
call fcn.0041ab20
test al, al
je 0x41b532
mov eax, dword [ebx]
mov dword [ebp - 8], eax
jmp 0x41b535
cmp al, 0xeb
jne 0x41b532
movsx ecx, byte [edi + 1]
cmp byte [ecx + edi + 2], 0xe9
lea eax, [ecx + edi + 2]
jne 0x41b52d
add eax, dword [eax + 1]
mov dword [ebp - 8], eax
jmp 0x41b535
mov dword [ebp - 8], edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x41b541
mov dword [ebp + 0xc], esi
jmp 0x41b582
mov al, byte [edi]
cmp al, 0xff
jne 0x41b564
cmp byte [edi + 1], 0x25
jne 0x41b564
mov ebx, dword [edi + 2]
mov edx, ebx
mov ecx, edi
call fcn.0041ab20
test al, al
je 0x41b57f
mov edx, dword [ebx]
mov dword [ebp + 0xc], edx
jmp 0x41b582
cmp al, 0xeb
jne 0x41b57f
movsx eax, byte [edi + 1]
cmp byte [eax + edi + 2], 0xe9
lea eax, [eax + edi + 2]
jne 0x41b57a
add eax, dword [eax + 1]
mov dword [ebp + 0xc], eax
jmp 0x41b582
mov dword [ebp + 0xc], edi
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 8]
cmp ecx, edi
jne 0x41b59d
cmp dword [0x426ec4], esi
jne 0x41b707
jmp 0x41b6e4
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x41b5a6
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x41b5af
mov dword [eax], ecx
push 0x18
call fcn.0040cc0a
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x41b5cc
mov dword [ebp - 4], 8
jmp 0x41b6e4
call fcn.0041bc70
mov eax, edi
call fcn.0041ac70
mov esi, eax
test esi, esi
jne 0x41b5ea
mov dword [ebp - 4], 8
jmp 0x41b6e4
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41b5f3
mov dword [eax], esi
xor ebx, ebx
lea ecx, [ebp + 0x14]
push ecx
push 0
lea eax, [ebx + esi]
push edi
push eax
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], 0
call fcn.0041b8c0
cmp dword [ebp + 0x14], 0
mov edi, eax
jne 0x41b642
mov edx, dword [ebp + 0x18]
mov ebx, edi
sub ebx, dword [ebp - 8]
push edx
call fcn.0041ac10
add esp, 4
test eax, eax
jne 0x41b642
cmp ebx, 5
jl 0x41b5f5
cmp ebx, 0x12
jbe 0x41b660
mov dword [ebp - 4], 6
jmp 0x41b6e4
cmp ebx, 5
jge 0x41b631
cmp dword [0x426ec4], 0
mov dword [ebp - 4], 9
jne 0x41b6ec
jmp 0x41b6e4
mov edi, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x1c], ecx
lea eax, [edi + ebx]
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x17]
lea edx, [ebx + esi + 5]
sub eax, edx
mov byte [ecx], bl
push ecx
lea edx, [ebx + esi + 5]
mov byte [ebx + esi], 0xe9
push edx
mov dword [ebx + esi + 1], eax
call fcn.0041abe0
add esp, 8
lea eax, [ebp - 0x10]
push eax
push 0x40
push ebx
push edi
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41b6db
mov ecx, edi
call fcn.0041aeb0
mov ebx, eax
test ebx, ebx
je 0x41b72a
mov ecx, 0x6544
cmp word [ebx + 0x1c], cx
je 0x41b72a
lea edx, [ebp + 0x14]
push edx
push 0x40
push 0x40
push ebx
mov dword [ebp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41b71c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [0x426ecc], eax
test esi, esi
je 0x41b6f7
mov eax, esi
call fcn.0041ae80
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41b707
push eax
call fcn.0040cb9f
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
pop ebx
pop edi
mov dword [0x426ed0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov dword [ebx + 0x1c], 0x6f746544
mov dword [ebx + 0x20], 0x21737275
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov ecx, dword [0x426ed8]
mov dword [eax + 0xc], edi
mov dword [eax + 4], 0
mov dword [eax + 0x10], esi
mov edx, dword [ebp - 0x10]
pop ebx
mov dword [eax + 0x14], edx
mov dword [eax], ecx
mov dword [0x426ed8], eax
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14