Function at 0x420d3b
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0xdc
mov eax, dword [0x580014]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xf0]
push ebx
push ebp
mov ebp, dword [esp + 0xe8]
mov ebx, ecx
push esi
mov esi, dword [esp + 0xf4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x100]
push edi
mov edi, dword [esp + 0xfc]
mov dword [esp + 0x30], eax
movzx eax, word [esi]
push ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], 8
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x1c], eax
call dword [sym.imp.Mso30Win32Client.dll_Ordinal_56788]
test dword [esi], 0x4000000
jne 0x420dda
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x60]
push eax
push ebx
call dword [sym.imp.Mso30Win32Client.dll_Ordinal_20135]
test eax, eax
jne 0x420dda
or dword [esi], 0x4000000
mov eax, dword [esp + 0x20]
mov dword [edi + 0x40], eax
mov byte [edi + 0x34], 0
mov byte [edi + 0x37], 0
mov dword [edi + 0x50], 0xfffffffe
mov dword [edi + 0x54], 0
mov dword [edi + 0x44], ebp
mov dword [edi + 0x70], 0
mov byte [edi + 0x48], 1
mov esi, dword [esi]
mov ecx, esi
sar ecx, 0x1f
and ecx, 2
mov byte [edi + 0x74], 0
add ecx, 2
mov edx, ecx
or edx, 0x100000
test esi, 0x40000000
cmove edx, ecx
mov ecx, edx
or ecx, 0x200000
test esi, 0x20000000
cmove ecx, edx
mov edx, dword [esp + 0x24]
mov eax, ecx
or eax, 0x2000000
test esi, 0x4000000
mov esi, dword [esp + 0x28]
cmove eax, ecx
mov dword [edi + 0x64], eax
mov ecx, dword [edx]
mov eax, dword [esi]
test ecx, 0x13000000
je 0x42104e
test eax, eax
je 0x42103e
cmp dword [eax], 0x20
jne 0x42103e
test ecx, 0x10000000
je 0x420e83
mov eax, dword [eax + 4]
dec eax
mov dword [edi + 0x50], eax
test dword [edx], 0x2000000
je 0x420ec5
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edi + 0x5c], eax
mov dword [edi + 0x58], ecx
mov eax, dword [esi]
add eax, 0x10
mov dword [edi + 0x60], eax
mov dword [eax], 0
mov eax, dword [edi + 0x60]
mov dword [eax + 8], 0
mov eax, dword [edi + 0x60]
mov dword [eax + 0xc], 0
mov eax, dword [edi + 0x60]
mov dword [eax + 4], 0
test dword [edx], 0x1000000
je 0x421046
xor al, al
mov dword [edi + 0x50], 1
mov byte [esp + 0x17], al
xor eax, eax
test ebp, ebp
jle 0x420fd2
mov esi, 0x200b
mov ecx, dword [esp + 0x20]
movzx ecx, word [ecx + eax*2]
cmp cx, si
jne 0x420f1e
lea esi, [eax + 1]
cmp esi, ebp
jge 0x420f19
mov edx, dword [esp + 0x20]
mov ebp, 0x200b
cmp word [edx + eax*2 + 2], bp
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
je 0x420f49
mov esi, 0x200b
cmp ecx, 0xa
je 0x420f28
cmp ecx, 0xd
jne 0x420f2d
mov byte [esp + 0x17], 1
inc eax
cmp eax, ebp
jl 0x420eed
cmp byte [esp + 0x17], 0
je 0x420fce
mov dword [edi + 0x54], SysReAllocString
jmp 0x421021
cmp eax, ebp
jge 0x420f32
lea eax, [ebp*2]
mov dword [esp + 0x18], eax
add eax, 2
push 0
push eax
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_30827]
mov ebp, eax
test ebp, ebp
je 0x42101d
push dword [esp + 0x18]
push dword [esp + 0x24]
push ebp
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
xor ecx, ecx
add esp, 0xc
mov word [eax + ebp], cx
lea ecx, [esi + 1]
cmp ecx, dword [esp + 0x1c]
jge 0x420fb0
lea eax, [esi*2]
mov edx, 0x200b
cmp word [eax + ebp + 2], dx
jne 0x420fb0
mov edx, 0x2d
mov esi, ecx
mov word [eax + ebp], dx
mov eax, 0xa
mov dword [esp + 0x20], ebp
mov word [ebp + esi*2], ax
mov dword [edi + 0x54], SysReAllocString
mov dword [edi + 0x40], ebp
mov byte [edi + 0x37], 1
jmp 0x42101d
mov esi, dword [esp + 0x28]
movaps xmm0, xmmword [0x5674d0]
xor ecx, ecx
mov eax, dword [edx]
movups xmmword [esp + 0x98], xmm0
test eax, 0x2000000
je 0x420fee
mov ecx, dword [esi]
mov edx, dword [esp + 0x20]
and eax, 0xeefeffff
push ecx
or eax, 0x420
mov ecx, ebx
push eax
lea eax, [esp + 0xa0]
push eax
push ebp
call fcn.0041ee49
mov eax, dword [esp + 0xa0]
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x54], eax
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
mov esi, dword [esp + 0x28]
and eax, 0xffffffdf
or eax, 0x10
mov dword [edx], eax
movzx eax, ax
mov dword [esp + 0x18], eax
mov dword [esi], 0
jmp 0x421073
and ecx, 0xecffffff
mov dword [edx], ecx
mov dword [esi], 0
jmp 0x421073
test eax, eax
je 0x421073
cmp dword [eax], 0x14
jne 0x421073
test byte [esp + 0x18], 0x80
je 0x421065
mov ecx, dword [eax + 4]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x48]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetViewportExtEx]
lea eax, [esp + 0x40]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetWindowExtEx]
xor ecx, ecx
cmp dword [esp + 0x40], ecx
setl cl
xor eax, eax
cmp dword [esp + 0x48], eax
setge al
xor ecx, eax
lea eax, [ecx*2 - 1]
xor ecx, ecx
cmp dword [esp + 0x44], ecx
mov dword [edi + 0x14], eax
setl cl
xor eax, eax
cmp dword [esp + 0x4c], eax
setge al
xor ecx, eax
test dword [esp + 0x18], 0x2000
lea eax, [ecx*2 - 1]
mov dword [edi + 0x18], eax
je 0x42118a
mov esi, dword [edi + 0x64]
test esi, 0x2000000
je 0x4210f7
mov ebp, dword [sym.imp.Mso30Win32Client.dll_Ordinal_56788]
push ebx
call ebp
lea eax, [esp + 0x5c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
jmp 0x421109
lea eax, [esp + 0x5c]
push eax
push ebx
call dword [sym.imp.Mso30Win32Client.dll_Ordinal_15809]
mov ebp, dword [sym.imp.Mso30Win32Client.dll_Ordinal_56788]
test eax, eax
jne 0x421116
lea ecx, [esp + 0x5c]
call fcn.0041ede0
test byte [esp + 0x93], 1
je 0x42113b
mov eax, dword [esp + 0x70]
push ebx
mov dword [esp + 0x74], eax
call dword [sym.imp.GDI32.dll_GetTextCharset]
mov byte [esp + 0x94], al
jmp 0x4211c6
push ebx
call ebp
test eax, eax
je 0x42115d
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push 0
push esi
push 0
push edx
push 0x34
push 0x534340
push ebx
push eax
call dword [ecx + 0x42c]
mov eax, 0x4ec4ec4f
imul dword [esp + 0x28]
push ebx
sar edx, 3
mov eax, edx
inc edx
shr eax, 0x1f
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x74], eax
call dword [sym.imp.GDI32.dll_GetTextCharset]
mov byte [esp + 0x94], al
jmp 0x4211c6
mov eax, dword [esp + 0x24]
test dword [eax], 0x4000000
je 0x4211ad
mov ebp, dword [sym.imp.Mso30Win32Client.dll_Ordinal_56788]
push ebx
call ebp
lea eax, [esp + 0x5c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
jmp 0x4211b9
lea eax, [esp + 0x5c]
push eax
push ebx
call dword [sym.imp.Mso30Win32Client.dll_Ordinal_15809]
test eax, eax
jne 0x4211c6
lea ecx, [esp + 0x5c]
call fcn.0041ede0
mov eax, dword [esp + 0x74]
and dword [esp + 0x18], 0x200
mov dword [esp + 0x28], eax
mov eax, 0
cmovne eax, dword [esp + 0x6c]
add eax, dword [esp + 0x5c]
imul eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x64]
test eax, 0x1008000
jne 0x421286
cmp dword [0x591de0], 1
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jne 0x421229
movzx eax, byte [0x591b1c]
cmp eax, 2
je 0x421225
cmp eax, 3
je 0x421225
mov ecx, 1
jmp 0x42124e
xor ecx, ecx
jmp 0x42124e
cmp word [0x591de4], 0
jne 0x421243
call fcn.00426226
test eax, eax
jns 0x421243
mov ecx, 1
jmp 0x42124e
xor ecx, ecx
cmp dword [0x591ddc], ecx
sete cl
test cl, cl
je 0x421270
test esi, esi
je 0x421270
mov edx, 0x80
mov ax, word [ebp]
lea ebp, [ebp + 2]
dec esi
cmp ax, dx
jae 0x42126e
test esi, esi
jne 0x42125b
jmp 0x421270
xor cl, cl
mov eax, dword [edi + 0x64]
test cl, cl
je 0x42127e
or eax, 0x1000000
jmp 0x421283
or eax, 0x8000
mov dword [edi + 0x64], eax
test eax, 0xa210e
je 0x4213cf
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4213cf
test al, 1
jne 0x4213cf
call fcn.00417975
test eax, eax
je 0x4213cf
mov eax, dword [edi + 0x64]
test eax, 0x8000
je 0x4213cb
push eax
push 0
push 0
push esi
push dword [esp + 0x30]
push ebx
call dword [sym.imp.mso40uiWin32Client.dll_Ordinal_4126]
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
test eax, eax
je 0x4213cf
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
test dword [eax], 0x4000000
je 0x4212fa
and dword [edi + 0x64], 0xfdffffff
mov byte [edi + 0x34], 0
xor ebp, ebp
mov ecx, dword [ecx]
mov esi, dword [ecx + 4]
add esi, 5
lea esi, [ecx + esi*4]
cmp dword [ecx + 8], ebp
jle 0x4213b7
nop dword [eax]
nop word [eax + eax]
push esi
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esp + 0x1c], 0
je 0x42133f
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x421343
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xa8]
push eax
push ebx
call dword [sym.imp.Mso30Win32Client.dll_Ordinal_15809]
test eax, eax
jne 0x421362
lea ecx, [esp + 0xa8]
call fcn.0041ede0
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0xc0], ecx
mov eax, dword [edi + 0x1c]
cmovg ecx, dword [esp + 0xc0]
mov dword [esp + 0x28], ecx
xor ecx, ecx
cmp word [esp + 0x18], cx
cdq
cmovne ecx, dword [esp + 0xb8]
xor eax, edx
add ecx, dword [esp + 0xa8]
sub eax, edx
cmp ecx, eax
jle 0x4213a4
mov eax, dword [edi + 0x18]
imul eax, ecx
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x30]
inc ebp
add esi, 0x60
mov eax, dword [eax]
cmp ebp, dword [eax + 8]
jl 0x421320
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4213cf
mov byte [edi + 0x34], 1
mov eax, dword [esp + 0x70]
imul eax, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x7c]
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0xf4]
movups xmm0, xmmword [eax]
mov eax, esi
or eax, edx
movups xmmword [edi], xmm0
je 0x421412
mov ecx, dword [edi + 0x14]
mov eax, ecx
imul eax, edx
imul ecx, esi
add dword [edi], eax
mov dword [edi + 0x2c], ecx
sub dword [edi + 8], ecx
jmp 0x421419
mov dword [edi + 0x2c], 0
mov eax, dword [edi + 8]
sub eax, dword [edi]
imul eax, dword [edi + 0x14]
mov dword [edi + 0x28], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x54]
imul eax, dword [edi + 0x14]
cmp byte [edi + 0x34], 0
mov dword [edi + 0x54], eax
je 0x42146c
push 2
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 1
je 0x421456
cmp eax, 4
jne 0x421468
push ebx
call dword [sym.imp.GDI32.dll_GetMapMode]
cmp eax, 1
jne 0x421468
cmp dword [edi + 0x30], 0
je 0x42146c
mov byte [edi + 0x34], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xe4]
mov dword [edi + 0x3c], eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051a430
add esp, 0xdc
ret 0x18