Function at 0x4227c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0xffffffffffffffff
push 0x4aad6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
lea ecx, [ebp + 0x4c]
mov dword [esp + 0x18], ebp
cmp ecx, ebx
je 0x4227f0
lea eax, [ecx - 0x4c]
jmp 0x4227f2
xor eax, eax
push ecx
add eax, 8
push 0x40
push 0xd
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, ebp
mov dword [esp + 0x24], ebx
call fcn.00426c00
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ebp + 0x1c], eax
lea esi, [ebp + 0x50]
mov byte [esp + 0x24], 1
mov ecx, esi
mov dword [esp + 0x14], esi
call fcn.004048b0
mov dword [esi + 0x10], ebx
mov word [esi + 0x14], bx
mov byte [esi + 0x16], bl
mov eax, 0x4b0c78
mov byte [esp + 0x24], 2
mov dword [esi + 0xc], eax
cmp word [0x4b0c78], 0xffff
mov ecx, 1
je 0x422859
add eax, 4
inc ecx
cmp word [eax], 0xffff
jne 0x42284e
lea edi, [ecx*8]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
add esp, 4
cmp edx, ebx
mov dword [esi + 0x10], edx
je 0x422886
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0x20], vtable.WTL::CMessageFilter.0
or eax, 0xffffffff
mov dword [ebp + 0x24], 0x4b0c6c
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x6c], ebx
mov dword [ebp + 0x70], ebx
mov byte [ebp + 0x84], bl
mov dword [ebp + 0x74], ebx
mov dword [ebp + 0x78], ebx
mov dword [ebp + 0x7c], eax
mov dword [ebp + 0x80], eax
lea esi, [ebp + 0x28]
mov byte [esp + 0x24], 4
mov ecx, esi
call fcn.0043ed70
lea ecx, [ebp + 0x8c]
mov byte [esp + 0x24], 5
call fcn.00432d20
lea ecx, [ebp + 0x200]
mov byte [esp + 0x24], 6
call fcn.0042abf0
lea ecx, [ebp + 0x370]
mov byte [esp + 0x24], 7
call fcn.00431310
lea ecx, [ebp + 0x44c]
mov byte [esp + 0x24], 8
call fcn.0041ec90
lea ecx, [ebp + 0x574]
mov byte [esp + 0x24], 9
call fcn.0041bfc0
mov al, byte [esp + 0x13]
mov dword [ebp + 0x6c8], ebx
mov byte [ebp + 0x6c4], al
mov dword [ebp + 0x6cc], ebx
mov dword [ebp + 0x6d0], ebx
lea edx, [ebp + 0x6e8]
mov dword [ebp + 0x6d4], ebx
mov dword [ebp + 0x6d8], ebx
mov dword [ebp + 0x6dc], ebx
mov dword [ebp + 0x6e0], ebx
xor ecx, ecx
mov dword [ebp + 0x6e4], ebx
mov dword [edx], ecx
lea edi, [ebp + 0x6fc]
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [ebp + 0x6f8], ebx
mov eax, dword [0x4c2080]
mov dword [edi], eax
mov ecx, 0x4d1b48
mov byte [esp + 0x24], 0xc
test ecx, ecx
mov dword [ebp], 0x4b0c5c
mov dword [ebp + 0x20], 0x4b0c54
mov dword [ebp + 0x24], 0x4b0c4c
mov dword [esi], vtable.CMainDlg.0
jne 0x4229a5
xor esi, esi
mov dword [esp + 0x14], esi
jmp 0x4229b6
push 0x4d1b48
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x14], eax
mov esi, eax
mov eax, dword [edi]
cmp dword [eax - 0xc], 1
jg 0x4229c3
cmp esi, dword [eax - 4]
jle 0x4229d6
mov ecx, edi
call fcn.00405a90
push esi
mov ecx, edi
call fcn.004056f0
cmp eax, ebx
je 0x422a0f
lea eax, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, eax
jb 0x4229fc
mov edi, dword [edi]
mov ecx, eax
mov edx, ecx
mov esi, 0x4d1b48
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x6fc]
mov dword [ecx - 8], esi
mov edx, dword [ebp + 0x6fc]
mov word [eax + edx], bx
mov ecx, dword [esp + 0x1c]
pop edi
mov dword [ebp + 0x700], ebx
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret