Function at 0x401e40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
xor eax, eax
push edi
mov edi, 0x4260d4
push esi
xor esi, esi
push ebx
xor ebx, ebx
sub esp, 0x7c
mov dword [esp + 0x68], eax
mov eax, 0x80000000
mov dword [esp + 0x54], eax
mov eax, 0x80000000
mov dword [esp + 0x50], eax
mov eax, 0x80000000
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x4c]
mov dword [esp + 8], eax
lea eax, [esp + 0x68]
mov dword [esp + 4], eax
mov dword [esp], 2
call fcn.0040c070
xor eax, eax
sub esp, 0x14
mov dword [esp + 4], eax
mov dword [esp], section..rdata
call fcn.00407120
xor edx, edx
xor ecx, ecx
sub esp, 8
mov dword [esp + 0x18], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], 0x4260d8
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], esi
call fcn.0040ff50
mov eax, dword [0x426050]
sub esp, 0x1c
mov edx, dword [esp + 0x68]
cmp edx, eax
je 0x401f3a
mov dword [esp], edx
mov edi, 0x4016b0
mov ebp, 0xfffffffc
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [0x426050], edx
call sub.USER32.dll_SetWindowLongA
mov dword [0x4260e4], eax
mov eax, dword [0x426050]
sub esp, 0xc
mov dword [esp], eax
mov ebx, 0xfffffff0
mov dword [esp + 4], ebx
call sub.USER32.dll_GetWindowLongA
sub esp, 8
mov edx, eax
mov esi, dword [esp + 0x9c]
or edx, reloc.msvcrt.dll_memmove
test esi, esi
jne 0x401f68
and eax, 0xfffbffff
mov edx, eax
mov dword [esp + 8], edx
mov al, 1
xor ebx, ebx
mov byte [0x4260b9], al
mov eax, 0xfffffff0
mov dword [esp + 4], eax
mov eax, dword [0x426050]
mov dword [esp], eax
call sub.USER32.dll_SetWindowLongA
mov eax, 0x27
xor edx, edx
xor ecx, ecx
sub esp, 0xc
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [0x426050]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.USER32.dll_SetWindowPos
xor eax, eax
mov byte [0x4260b9], al
sub esp, 0x1c
mov dword [esp], 0
call sub.USER32.dll_GetSystemMetrics
mov dword [0x42604c], eax
sub esp, 4
mov dword [esp], 1
call sub.USER32.dll_GetSystemMetrics
mov dword [0x426048], eax
sub esp, 4
mov eax, 0x426038
mov dword [esp + 4], eax
mov eax, dword [0x426050]
mov dword [esp], eax
call sub.USER32.dll_GetWindowRect
mov eax, 0x426028
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [0x426050]
mov dword [esp], eax
call sub.USER32.dll_GetClientRect
mov ecx, dword [0x426040]
mov edx, dword [0x426028]
mov eax, dword [0x426038]
mov edi, dword [0x426030]
mov ebx, dword [0x426044]
add edx, ecx
mov ecx, dword [0x42603c]
mov esi, edx
sub esp, 8
mov ebp, dword [0x426034]
mov dword [esp + 0x30], edi
sub esi, eax
sub esi, edi
mov edi, dword [0x42602c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebp
add edi, ebx
mov ebx, edi
sub ebx, ecx
mov ecx, dword [esp + 0x94]
sub ebx, ebp
mov ebp, dword [esp + 0x90]
add ecx, ebx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x90]
add ebp, esi
mov dword [esp + 0x3c], ebp
test ecx, ecx
jle 0x4021e0
mov edi, dword [esp + 0x94]
mov esi, dword [0x426048]
mov ecx, dword [0x42604c]
test edi, edi
mov dword [esp + 0x28], esi
jg 0x402210
mov esi, dword [esp + 0x94]
test esi, esi
je 0x40210d
jns 0x402410
mov esi, dword [esp + 0x90]
test esi, esi
js 0x4024b7
mov esi, dword [esp + 0x30]
mov edi, dword [0x4260d4]
add eax, esi
sub eax, edx
add eax, ebp
imul eax, edi
cdq
idiv dword [0x4260d8]
mov edx, dword [esp + 0x28]
add ebx, eax
mov dword [esp + 0x28], ebx
sub edx, ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 1
mov dword [esp + 0x94], eax
mov eax, 0x60
mov dword [esp + 0x30], eax
sub ecx, ebp
xor edi, edi
mov dword [0x4260c8], edi
mov eax, ecx
shr eax, 0x1f
add ecx, eax
mov eax, dword [esp + 0x98]
sar ecx, 1
mov dword [esp + 0x2c], ecx
mov dword [0x4260cc], eax
xor eax, eax
mov dword [0x4260c4], eax
xor eax, eax
mov dword [0x4260e0], eax
mov eax, dword [0x4333b4]
cmp eax, 0x401580
je 0x402163
mov dword [0x42609c], eax
mov esi, 0x401580
mov dword [0x4333b4], esi
mov edi, dword [0x4260a4]
test edi, edi
je 0x402240
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x30]
mov ebp, 0xffffffff
mov dword [esp + 4], ebp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov eax, dword [0x426050]
mov dword [esp], eax
call sub.USER32.dll_SetWindowPos
sub esp, 0x1c
cmp byte [0x4260b8], 0
jne 0x4021d1
mov edi, dword [0x4260d0]
test edi, edi
je 0x4021d1
test byte [0x4260dc], 1
jne 0x4023d0
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov ecx, dword [0x426048]
mov ebp, dword [0x42604c]
mov dword [esp + 0x28], ecx
jne 0x40243b
mov esi, dword [esp + 0x94]
mov ecx, ebp
test esi, esi
jne 0x4020c2
jmp 0x40210d
mov edx, esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x28], esi
sub edx, esi
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 1
mov dword [esp + 0x94], eax
mov eax, 0x64
mov dword [esp + 0x30], eax
jmp 0x402116
mov dword [esp], 0x4260ac
xor eax, eax
mov ebx, 0xffffffff
mov dword [esp + 4], eax
call fcn.00406db0
mov edx, 4
mov ecx, 0x422001
sub esp, 8
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00406180
sub esp, 0x10
test eax, eax
jne 0x402171
mov ebx, dword [0x4378a4]
xor esi, esi
mov eax, dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
mov ecx, ebx
add ecx, 0x2869f
jb 0x402431
test esi, esi
mov edx, ecx
jne 0x40241d
mov esi, ebx
jmp 0x4022b9
inc esi
cmp ecx, esi
jb 0x402400
cmp dword [esi], eax
jne 0x4022b0
mov dword [esp], esi
lea ebx, [esp + 0x6c]
mov eax, 0x40
mov dword [esp + 8], eax
mov eax, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualProtect
mov dword [esi], 0x42101c
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x6c]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, 4
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
call sub.KERNEL32.dll_GetCurrentProcess
mov edx, 4
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.KERNEL32.dll_FlushInstructionCache
mov ebx, dword [0x4378a4]
xor ecx, ecx
mov edx, ebx
sub esp, 0xc
add edx, 0x2869f
jb 0x402427
mov dword [0x4260a4], esi
test ecx, ecx
mov eax, dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
je 0x402355
jmp 0x4023c3
inc ebx
cmp ebx, edx
ja 0x4023c3
cmp dword [ebx], eax
jne 0x402350
mov ecx, 0x40
mov edi, 4
mov dword [esp + 8], ecx
lea esi, [esp + 0x6c]
mov dword [esp + 4], edi
mov edi, ebx
mov dword [esp + 0xc], esi
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualProtect
mov dword [ebx], 0x42101c
sub esp, 0x10
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x6c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, 4
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
call sub.KERNEL32.dll_GetCurrentProcess
mov edx, 4
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_FlushInstructionCache
sub esp, 0xc
mov dword [0x4260a0], edi
jmp 0x402171
mov eax, dword [0x426050]
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 8], ebx
mov esi, 0x45a
mov dword [esp + 4], esi
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call sub.USER32.dll_SendMessageA
sub esp, 0x10
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
xor ecx, ecx
mov dword [0x4260a4], ecx
jmp 0x402355
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
jmp 0x4020f7
xor ebx, ebx
mov dword [0x4260a4], ebx
jmp 0x4023c3
mov ecx, 1
jmp 0x40233b
mov esi, 1
jmp 0x40229e
cmp dword [esp + 0x94], 0
jne 0x40247a
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov ebx, dword [0x4260d8]
add eax, edx
sub eax, edi
add eax, ecx
mov ecx, ebp
imul eax, ebx
cdq
idiv dword [0x4260d4]
lea ebp, [eax + esi]
mov esi, 0x60
mov dword [esp + 0x30], esi
jmp 0x402116
mov eax, dword [esp + 0x94]
test eax, eax
jns 0x4024bf
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x28], eax
sub ecx, eax
mov eax, 0x60
mov dword [esp + 0x30], eax
mov edx, ecx
shr edx, 0x1f
add edx, ecx
mov ecx, ebp
mov ebp, dword [esp + 0x3c]
sar edx, 1
mov dword [esp + 0x94], edx
jmp 0x402116
mov dword [esp + 0x3c], ebp
mov ebp, ecx
jmp 0x402485
mov eax, ecx
mov ecx, dword [esp + 0x2c]
mov ebx, 2
mov dword [esp + 0x28], ecx
sub eax, ecx
cdq
idiv ebx
mov dword [esp + 0x94], eax
jmp 0x402445