Function at 0x420568
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0xe4
mov eax, dword [0x580014]
xor eax, esp
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xf0]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xf4]
mov ebp, ecx
mov ecx, dword [esp + 0x104]
push edi
mov edi, dword [esp + 0x104]
mov dword [esp + 0x1c], eax
movzx eax, word [eax]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10c]
push ebp
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], 8
mov dword [esp + 0x44], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], eax
call dword [sym.imp.Mso30Win32Client.dll_Ordinal_4006]
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
test dword [eax], 0x4000000
jne 0x420615
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x68]
push eax
push ebp
call dword [sym.imp.Mso30Win32Client.dll_Ordinal_24008]
test eax, eax
mov eax, dword [esp + 0x1c]
jne 0x420615
or dword [eax], 0x4000000
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x40], ecx
mov dword [edi + 0x44], esi
mov byte [edi + 0x34], 0
mov byte [edi + 0x37], 0
mov dword [edi + 0x50], 0xfffffffe
mov dword [edi + 0x54], 0
mov dword [edi + 0x70], 0
mov byte [edi + 0x48], 1
mov esi, dword [eax]
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 + 0x14]
mov eax, ecx
or eax, 0x2000000
test esi, 0x4000000
mov esi, dword [esp + 0x1c]
cmove eax, ecx
mov dword [edi + 0x64], eax
mov eax, dword [edx]
mov ecx, dword [esi]
test ecx, 0x13000000
je 0x4208a0
test eax, eax
je 0x420890
cmp dword [eax], 0x20
jne 0x420890
test ecx, 0x10000000
je 0x4206be
mov eax, dword [eax + 4]
dec eax
mov dword [edi + 0x50], eax
test dword [esi], 0x2000000
je 0x420700
mov eax, dword [edx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edi + 0x5c], eax
mov dword [edi + 0x58], ecx
mov eax, dword [edx]
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 [esi], 0x1000000
je 0x420898
mov edx, dword [esp + 0x28]
xor al, al
mov byte [esp + 0x1b], al
xor eax, eax
mov dword [edi + 0x50], 1
test edx, edx
jle 0x420810
mov esi, 0x200b
mov ecx, dword [esp + 0x2c]
movzx ecx, word [ecx + eax*2]
cmp cx, si
jne 0x42075d
lea esi, [eax + 1]
cmp esi, edx
jge 0x420758
mov edx, dword [esp + 0x2c]
mov ebx, 0x200b
cmp word [edx + eax*2 + 2], bx
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
je 0x420788
mov esi, 0x200b
cmp ecx, 0xa
je 0x420767
cmp ecx, 0xd
jne 0x42076c
mov byte [esp + 0x1b], 1
inc eax
cmp eax, edx
jl 0x42072c
cmp byte [esp + 0x1b], 0
je 0x42080c
mov dword [edi + 0x54], SysReAllocString
jmp 0x42086f
cmp eax, edx
jge 0x420771
lea eax, [edx + edx]
mov dword [esp + 0x24], eax
add eax, 2
push 0
push eax
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_30827]
mov dword [esp + 0x30], eax
test eax, eax
je 0x42086f
push dword [esp + 0x24]
push dword [esp + 0x30]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x3c]
xor edx, edx
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov word [ecx + eax], dx
lea edx, [esi + 1]
cmp edx, dword [esp + 0x28]
jge 0x4207ef
mov ebx, 0x200b
lea ecx, [eax + esi*2]
cmp word [ecx + 2], bx
mov ebx, dword [esp + 0x20]
jne 0x4207ef
mov esi, 0x2d
mov word [ecx], si
mov esi, edx
mov ecx, 0xa
mov dword [esp + 0x2c], eax
mov word [eax + esi*2], cx
mov dword [edi + 0x54], SysReAllocString
mov dword [edi + 0x40], eax
mov byte [edi + 0x37], 1
jmp 0x42086f
mov esi, dword [esp + 0x1c]
movaps xmm0, xmmword [0x5674d0]
mov esi, dword [esi]
mov dword [esp + 0x20], 0
movups xmmword [esp + 0x64], xmm0
test esi, 0x2000000
je 0x420838
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov dword [esp + 0x20], eax
call dword [sym.imp.mso40uiWin32Client.dll_Ordinal_11544]
push dword [esp + 0x20]
and esi, 0xeefeffff
lea ecx, [esp + 0x68]
or esi, 0x420
mov edx, dword [eax]
push esi
push ecx
push dword [esp + 0x34]
mov ecx, eax
push dword [esp + 0x3c]
push ebp
call dword [edx]
mov eax, dword [esp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x54], eax
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
and eax, 0xffffffdf
or eax, 0x10
mov dword [esi], eax
movzx eax, ax
mov dword [esp + 0x24], eax
mov dword [edx], 0
jmp 0x4208c5
and ecx, 0xecffffff
mov dword [esi], ecx
mov dword [edx], 0
jmp 0x4208c5
test eax, eax
je 0x4208c5
cmp dword [eax], 0x14
jne 0x4208c5
test byte [esp + 0x24], 0x80
je 0x4208b7
mov ecx, dword [eax + 4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x34], eax
mov eax, dword [ebx]
lea ecx, [esp + 0x50]
push ecx
push ebp
push ebx
call dword [eax + 0x27c]
mov eax, dword [ebx]
lea ecx, [esp + 0x48]
push ecx
push ebp
push ebx
call dword [eax + 0x280]
xor ecx, ecx
cmp dword [esp + 0x48], ecx
setl cl
xor eax, eax
cmp dword [esp + 0x50], eax
setge al
xor ecx, eax
lea eax, [ecx*2 - 1]
xor ecx, ecx
cmp dword [esp + 0x4c], ecx
mov dword [edi + 0x14], eax
setl cl
xor eax, eax
cmp dword [esp + 0x54], eax
setge al
xor ecx, eax
test dword [esp + 0x24], 0x2000
lea eax, [ecx*2 - 1]
mov dword [edi + 0x18], eax
je 0x4209d5
mov esi, dword [edi + 0x64]
test esi, 0x2000000
je 0x420950
push ebp
call dword [sym.imp.Mso30Win32Client.dll_Ordinal_4006]
lea edx, [esp + 0x74]
push edx
push ebp
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3f4]
jmp 0x42095c
lea eax, [esp + 0x74]
push eax
push ebp
call dword [sym.imp.Mso30Win32Client.dll_Ordinal_3712]
test eax, eax
jne 0x420969
lea ecx, [esp + 0x74]
call fcn.0041ede0
test byte [esp + 0xab], 1
je 0x42097c
mov eax, dword [esp + 0x88]
jmp 0x4209bb
push ebp
call dword [sym.imp.Mso30Win32Client.dll_Ordinal_4006]
test eax, eax
je 0x4209a2
mov ecx, dword [eax]
lea edx, [esp + 0x64]
push 0
push esi
push 0
push edx
push 0x34
push 0x534340
push ebp
push eax
call dword [ecx + 0x430]
mov eax, 0x4ec4ec4f
imul dword [esp + 0x64]
sar edx, 3
mov eax, edx
inc edx
shr eax, 0x1f
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x88], eax
mov eax, dword [ebx]
push ebp
push ebx
call dword [eax + 0x294]
mov byte [esp + 0xac], al
jmp 0x420a0e
test dword [esi], 0x4000000
je 0x4209f5
push ebp
call dword [sym.imp.Mso30Win32Client.dll_Ordinal_4006]
lea edx, [esp + 0x74]
push edx
push ebp
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3f4]
jmp 0x420a01
lea eax, [esp + 0x74]
push eax
push ebp
call dword [sym.imp.Mso30Win32Client.dll_Ordinal_3712]
test eax, eax
jne 0x420a0e
lea ecx, [esp + 0x74]
call fcn.0041ede0
and dword [esp + 0x24], 0x200
mov eax, 0
mov esi, dword [esp + 0x8c]
cmovne eax, dword [esp + 0x84]
add eax, dword [esp + 0x74]
imul eax, dword [edi + 0x18]
mov dword [esp + 0x30], esi
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x64]
test eax, 0x1008000
jne 0x420b00
cmp dword [0x591de0], 1
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
jne 0x420a7f
movzx eax, byte [0x591b1c]
cmp eax, 2
je 0x420a7b
cmp eax, 3
je 0x420a7b
mov eax, 1
jmp 0x420aa4
xor eax, eax
jmp 0x420aa4
cmp word [0x591de4], 0
jne 0x420a99
call fcn.00426226
test eax, eax
jns 0x420a99
mov eax, 1
jmp 0x420aa4
xor eax, eax
cmp dword [0x591ddc], eax
sete al
mov dword [esp + 0x14], eax
test al, al
je 0x420ae2
cmp dword [esp + 0x28], 0
je 0x420ae2
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x64], 0x80
nop dword [eax]
nop word [eax + eax]
mov ax, word [edx]
lea edx, [edx + 2]
dec ecx
cmp ax, word [esp + 0x64]
jae 0x420af4
test ecx, ecx
jne 0x420ad0
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x64]
test cl, cl
je 0x420af8
or eax, 0x1000000
jmp 0x420afd
xor cl, cl
jmp 0x420ae6
or eax, 0x8000
mov dword [edi + 0x64], eax
test eax, 0xa210e
je 0x420c74
cmp dword [esp + 0x28], 0
je 0x420c74
test al, 1
jne 0x420c74
call fcn.00417975
test eax, eax
je 0x420c74
mov eax, dword [edi + 0x64]
test eax, 0x8000
je 0x420c70
push eax
push 0
push 0
push dword [esp + 0x34]
push dword [esp + 0x3c]
push ebp
call dword [sym.imp.mso40uiWin32Client.dll_Ordinal_57731]
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
test eax, eax
je 0x420c74
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
test dword [eax], 0x4000000
je 0x420b76
and dword [edi + 0x64], 0xfdffffff
mov byte [edi + 0x34], 0
mov ecx, dword [ecx]
mov dword [esp + 0x20], 0
mov edx, dword [ecx + 4]
add edx, 5
cmp dword [ecx + 8], 0
lea edx, [ecx + edx*4]
mov dword [esp + 0x1c], edx
jle 0x420c54
nop dword [eax + eax]
nop
mov eax, dword [ebx]
push edx
push ebx
call dword [eax + 0x3a0]
mov ecx, dword [ebx]
push eax
push ebp
mov dword [esp + 0x6c], ecx
mov ecx, dword [ecx + 0x31c]
push ebx
call ecx
cmp dword [esp + 0x14], 0
je 0x420bd0
push eax
mov eax, dword [esp + 0x68]
push ebx
call dword [eax + 0x408]
jmp 0x420bd4
mov dword [esp + 0x14], eax
lea eax, [esp + 0xb0]
push eax
push ebp
call dword [sym.imp.Mso30Win32Client.dll_Ordinal_3712]
test eax, eax
jne 0x420bf3
lea ecx, [esp + 0xb0]
call fcn.0041ede0
cmp dword [esp + 0xc8], esi
mov eax, dword [edi + 0x1c]
cmovg esi, dword [esp + 0xc8]
xor ecx, ecx
cmp word [esp + 0x24], cx
cdq
cmovne ecx, dword [esp + 0xc0]
xor eax, edx
add ecx, dword [esp + 0xb0]
sub eax, edx
cmp ecx, eax
jle 0x420c2d
mov eax, dword [edi + 0x18]
imul eax, ecx
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
inc ecx
add edx, 0x60
mov dword [esp + 0x20], ecx
mov eax, dword [eax]
mov dword [esp + 0x1c], edx
cmp ecx, dword [eax + 8]
jl 0x420ba0
mov dword [esp + 0x30], esi
push dword [esp + 0x14]
mov esi, dword [ebx]
push ebp
push ebx
call dword [esi + 0x31c]
push eax
push ebx
call dword [esi + 0x408]
mov esi, dword [esp + 0x30]
jmp 0x420c74
mov byte [edi + 0x34], 1
mov eax, dword [esp + 0x88]
imul eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x94]
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0xfc]
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0x34]
or eax, edx
movups xmmword [edi], xmm0
je 0x420cbd
mov ecx, dword [edi + 0x14]
mov eax, ecx
imul ecx, dword [esp + 0x34]
imul eax, edx
add dword [edi], eax
mov dword [edi + 0x2c], ecx
sub dword [edi + 8], ecx
jmp 0x420cc4
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 0x420d1d
mov eax, dword [ebx]
push 2
push ebp
push ebx
call dword [eax + 0x414]
cmp eax, 1
je 0x420d04
cmp eax, 4
jne 0x420d19
mov eax, dword [ebx]
push ebp
push ebx
call dword [eax + 0x278]
cmp eax, 1
jne 0x420d19
cmp dword [edi + 0x30], 0
je 0x420d1d
mov byte [edi + 0x34], 0
mov ecx, dword [esp + 0xec]
mov dword [edi + 0x3c], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051a430
add esp, 0xe4
ret 0x18