Function at 0x520390
Capabilities:
Check if file exists
Get common file path
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67d0b9
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2e4], esi
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2f0], edi
mov dword [ebp - 0x2ec], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov dword [ebp - 0x2e8], ecx
mov byte [edi], 0
mov edx, ecx
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x2ec], 1
mov word [ebp - 0x2a8], ax
mov dword [ebp - 0x298], 0
lea eax, [edx + 2]
mov dword [ebp - 0x294], 7
mov dword [ebp - 0x2dc], eax
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x520430
sub edx, dword [ebp - 0x2dc]
sar edx, 1
push edx
push ecx
lea ecx, [ebp - 0x2a8]
call fcn.0043fcb0
lea eax, [esi + 0x88]
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x2dc], eax
push ecx
mov ecx, eax
call fcn.0051d520
mov esi, eax
mov eax, dword [ebp - 0x2dc]
mov eax, dword [eax]
mov dword [ebp - 0x2e0], eax
cmp esi, eax
je 0x52049b
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.0051ca80
add esp, 8
test al, al
je 0x52049d
mov eax, dword [ebp - 0x2e0]
mov esi, eax
mov edx, dword [ebp - 0x294]
cmp edx, 8
jb 0x5204dd
mov ecx, dword [ebp - 0x2a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5204d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x521eb4
push edx
push ecx
call fcn.00669e69
add esp, 8
mov eax, dword [ebp - 0x2dc]
cmp esi, dword [eax]
je case.0x52050d.18
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, 0x1a
ja case.0x52050d.18
jmp dword [eax*4 + 0x521ebc]
push 5
xor eax, eax
mov dword [ebp - 0x298], 0
push str.bizhi
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
call fcn.0043fcb0
mov ecx, dword [ebp - 0x2e8]
mov edx, ecx
mov dword [ebp - 4], 1
lea eax, [edx + 2]
mov dword [ebp - 0x2e0], eax
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x520560
sub edx, dword [ebp - 0x2e0]
lea eax, [ebp - 0x2a8]
sar edx, 1
cmp dword [ebp - 0x294], 8
cmovae eax, dword [ebp - 0x2a8]
cmp dword [ebp - 0x298], edx
jne 0x5206d2
mov edx, dword [ebp - 0x298]
test edx, edx
je 0x5205cb
sub eax, ecx
mov dword [ebp - 0x2e0], eax
nop word [eax + eax]
mov ax, word [ecx + eax]
cmp ax, word [ecx]
jne 0x5206d2
mov eax, dword [ebp - 0x2e0]
add ecx, 2
sub edx, 1
jne 0x5205b0
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 0xf
push str.channel_reg_key
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 2
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], 0
call fcn.0042a9a0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [esi + 0x28]
call fcn.0051a170
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 4
jb 0x520656
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0050b290
add esp, 0xc
lea ecx, [ebp - 0x2c0]
call fcn.0042ad20
lea ecx, [ebp - 0x278]
call fcn.0042ad20
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 8
call fcn.0042ad20
mov ecx, dword [ebp - 0x2e4]
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x2d8]
push eax
call fcn.0051e8c0
push eax
mov ecx, edi
call fcn.00436bb0
lea ecx, [ebp - 0x2d8]
call fcn.0042ad20
lea ecx, [ebp - 0x290]
call fcn.0042c3a0
lea ecx, [ebp - 0x2a8]
jmp 0x521e90
push 0
push 0x6d18c8
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
push 8
push str.reg_path
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 9
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xa
push ecx
lea ecx, [ebp - 0x230]
push ecx
lea eax, [esi + 0x28]
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x2e0], eax
push ecx
mov ecx, eax
call fcn.0051a170
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xb
jb 0x520765
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x2c0]
push eax
call fcn.0050b290
add esp, 0xc
lea ecx, [ebp - 0x260]
call fcn.0042ad20
lea ecx, [ebp - 0x230]
call fcn.0042ad20
lea ecx, [ebp - 0x248]
call fcn.0042ad20
xor eax, eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x2dc]
push eax
sub esp, 0x18
lea eax, [ebp - 0x2c0]
mov ecx, esp
push eax
call fcn.00436ad0
mov esi, dword [ebp - 0x2e4]
mov ecx, esi
call fcn.00523d00
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 0xf
push str.channel_reg_key
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
mov ecx, dword [ebp - 0x2e0]
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0051a170
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x13
jb 0x520876
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0050b290
add esp, 0xc
lea ecx, [ebp - 0x260]
call fcn.0042ad20
lea ecx, [ebp - 0x248]
call fcn.0042ad20
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x17
call fcn.0042ad20
cmp dword [ebp - 0x27c], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x278]
cmovae ecx, dword [ebp - 0x290]
cmp dword [ebp - 0x264], 8
push ecx
cmovae eax, dword [ebp - 0x278]
mov ecx, esi
push eax
push dword [ebp - 0x2dc]
lea eax, [ebp - 0x2d8]
push eax
call fcn.005223d0
cmp dword [ebp - 0x2c4], 8
lea eax, [ebp - 0x2d8]
push 0xfde9
cmovae eax, dword [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 0x18
push eax
call fcn.0050b150
add esp, 0xc
mov ecx, edi
push eax
call fcn.00436bb0
lea ecx, [ebp - 0x260]
call fcn.0042ad20
lea ecx, [ebp - 0x2d8]
call fcn.0042c3a0
lea ecx, [ebp - 0x290]
call fcn.0042c3a0
lea ecx, [ebp - 0x278]
call fcn.0042c3a0
lea ecx, [ebp - 0x2c0]
call fcn.0042c3a0
lea ecx, [ebp - 0x2a8]
jmp 0x521e90
push dword [ebp - 0x2e8]
mov ecx, dword [ebp - 0x2e4]
lea eax, [ebp - 0x290]
push 3
push eax
call fcn.0051f6b0
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x290]
mov dword [ebp - 0x2ec], 3
cmovae eax, dword [ebp - 0x290]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x290]
call fcn.0042c3a0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x520ab4
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 0x11
push str.main_process_name
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x19
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [esi + 0x28]
call fcn.0051a170
mov byte [ebp - 4], 0x1b
cmp dword [eax + 0x14], 0x10
jb 0x520a59
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0050b290
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x520a76
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x260]
call fcn.0042c3a0
lea ecx, [ebp - 0x2c0]
call fcn.0042ad20
lea ecx, [ebp - 0x248]
call fcn.0042ad20
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.0042ad20
push 0xfde9
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0050b150
mov esi, eax
add esp, 0xc
cmp edi, esi
je 0x520afd
mov ecx, edi
call fcn.0042acd0
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0x260]
call fcn.0042ad20
jmp case.0x52050d.18
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 8
push str.reg_path
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x1c
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x1d
push ecx
lea ecx, [ebp - 0x248]
push ecx
lea eax, [esi + 0x28]
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x2e0], eax
push ecx
mov ecx, eax
call fcn.0051a170
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x1e
jb 0x520ba3
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x2c0]
push eax
call fcn.0050b290
add esp, 0xc
lea ecx, [ebp - 0x260]
call fcn.0042ad20
lea ecx, [ebp - 0x248]
call fcn.0042ad20
lea ecx, [ebp - 0x230]
call fcn.0042ad20
xor eax, eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 0x23
push eax
lea eax, [ebp - 0x2dc]
push eax
sub esp, 0x18
lea eax, [ebp - 0x2c0]
mov ecx, esp
push eax
call fcn.00436ad0
mov esi, dword [ebp - 0x2e4]
mov ecx, esi
call fcn.00523d00
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 0x14
push str.install_date_reg_key
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x24
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
mov ecx, dword [ebp - 0x2e0]
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 0x25
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0051a170
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x26
jb 0x520cb4
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x2d8]
push eax
call fcn.0050b290
add esp, 0xc
lea ecx, [ebp - 0x260]
call fcn.0042ad20
lea ecx, [ebp - 0x248]
call fcn.0042ad20
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x2a
call fcn.0042ad20
cmp dword [ebp - 0x2c4], 8
lea ecx, [ebp - 0x2d8]
lea eax, [ebp - 0x278]
cmovae ecx, dword [ebp - 0x2d8]
cmp dword [ebp - 0x264], 8
push ecx
cmovae eax, dword [ebp - 0x278]
mov ecx, esi
push eax
push dword [ebp - 0x2dc]
lea eax, [ebp - 0x290]
push eax
call fcn.005223d0
mov byte [ebp - 4], 0x2b
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x290]
push 0xfde9
cmovae eax, dword [ebp - 0x290]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0050b150
mov esi, eax
add esp, 0xc
cmp edi, esi
je 0x520d87
mov ecx, edi
call fcn.0042acd0
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0x260]
call fcn.0042ad20
lea ecx, [ebp - 0x290]
call fcn.0042c3a0
lea ecx, [ebp - 0x2d8]
call fcn.0042c3a0
lea ecx, [ebp - 0x278]
call fcn.0042c3a0
lea ecx, [ebp - 0x2c0]
jmp 0x521e90
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 8
push str.reg_path
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x2c
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x2d
push ecx
lea ecx, [ebp - 0x248]
push ecx
lea eax, [esi + 0x28]
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x2e0], eax
push ecx
mov ecx, eax
call fcn.0051a170
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x2e
jb 0x520e54
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x2c0]
push eax
call fcn.0050b290
add esp, 0xc
lea ecx, [ebp - 0x260]
call fcn.0042ad20
lea ecx, [ebp - 0x248]
call fcn.0042ad20
lea ecx, [ebp - 0x230]
call fcn.0042ad20
xor eax, eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 0x33
push eax
lea eax, [ebp - 0x2dc]
push eax
sub esp, 0x18
lea eax, [ebp - 0x2c0]
mov ecx, esp
push eax
call fcn.00436ad0
mov esi, dword [ebp - 0x2e4]
mov ecx, esi
call fcn.00523d00
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 0x13
push str.install_dir_reg_key
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x34
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
mov ecx, dword [ebp - 0x2e0]
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 0x35
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0051a170
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x36
jb 0x520f65
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x2d8]
push eax
call fcn.0050b290
add esp, 0xc
lea ecx, [ebp - 0x260]
call fcn.0042ad20
lea ecx, [ebp - 0x248]
call fcn.0042ad20
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x3a
call fcn.0042ad20
cmp dword [ebp - 0x2c4], 8
lea ecx, [ebp - 0x2d8]
lea eax, [ebp - 0x278]
cmovae ecx, dword [ebp - 0x2d8]
cmp dword [ebp - 0x264], 8
push ecx
cmovae eax, dword [ebp - 0x278]
mov ecx, esi
push eax
push dword [ebp - 0x2dc]
lea eax, [ebp - 0x290]
push eax
call fcn.005223d0
mov byte [ebp - 4], 0x3b
jmp 0x520d30
push 0
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 0x11
push str.public_config_dir
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x3c
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x3d
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [esi + 0x28]
call fcn.0051a170
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x3e
jb 0x521087
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.0050b290
add esp, 0xc
lea ecx, [ebp - 0x260]
call fcn.0042ad20
lea ecx, [ebp - 0x248]
call fcn.0042ad20
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x42
call fcn.0042ad20
push 9
xor eax, eax
mov dword [ebp - 0x268], 0
push str._appdata_
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
call fcn.0043fcb0
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0x43
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x521100
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
push dword [ebp - 0x268]
lea eax, [ebp - 0x278]
push 0
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00524710
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00459ea0
cmp dword [ebp - 0x294], 8
lea eax, [ebp - 0x2a8]
push 0xfde9
cmovae eax, dword [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0050b150
mov esi, eax
add esp, 0xc
cmp edi, esi
je 0x521194
mov ecx, edi
call fcn.0042acd0
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0x260]
call fcn.0042ad20
lea ecx, [ebp - 0x278]
call fcn.0042c3a0
lea ecx, [ebp - 0x2a8]
jmp 0x521e90
push 0
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 0x10
push str.appdata_dir_name
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x44
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x45
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [esi + 0x28]
call fcn.0051a170
mov byte [ebp - 4], 0x46
jmp 0x520a51
push dword [ebp - 0x2e8]
mov ecx, dword [ebp - 0x2e4]
lea eax, [ebp - 0x290]
push 3
push eax
call fcn.0051f6b0
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x290]
mov dword [ebp - 0x2ec], 5
cmovae eax, dword [ebp - 0x290]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x290]
call fcn.0042c3a0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x520ab4
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 0xd
push str.cfg_file_path
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x47
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x48
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [esi + 0x28]
call fcn.0051a170
mov byte [ebp - 4], 0x49
jmp 0x520a51
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 9
push str.stats_url
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x4a
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
mov byte [ebp - 4], 0x4b
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [esi + 0x28]
call fcn.0051a170
mov esi, eax
cmp edi, esi
je 0x5213f4
mov ecx, edi
call fcn.0042acd0
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0x260]
call fcn.0042ad20
lea ecx, [ebp - 0x248]
call fcn.0042ad20
lea ecx, [ebp - 0x230]
call fcn.0042ad20
jmp case.0x52050d.18
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 0x12
push str.cfg_center_ver_url
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x4c
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
mov byte [ebp - 4], 0x4d
jmp 0x5213a9
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 0x15
push str.cfg_center_detail_url
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x4e
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
mov byte [ebp - 4], 0x4f
jmp 0x5213a9
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 0x18
push str.cfg_center_msg_wnd_class
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x50
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x51
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [esi + 0x28]
call fcn.0051a170
push eax
mov ecx, edi
call fcn.00436bb0
jmp 0x5213f4
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 0x1d
push str.cfg_center_stub_msg_wnd_class
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x52
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x53
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [esi + 0x28]
call fcn.0051a170
push eax
mov ecx, edi
call fcn.00436bb0
jmp 0x5213f4
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 0x1a
push str.config_center_single_mutex
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x54
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x55
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [esi + 0x28]
call fcn.0051a170
push eax
mov ecx, edi
call fcn.00436bb0
jmp 0x5213f4
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 0xf
push str.dump_upload_url
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x56
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x57
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [esi + 0x28]
call fcn.0051a170
push eax
mov ecx, edi
call fcn.00436bb0
jmp 0x5213f4
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 0xf
push str.service_cfg_url
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x58
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x59
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [esi + 0x28]
call fcn.0051a170
push eax
mov ecx, edi
call fcn.00436bb0
jmp 0x5213f4
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 3
push 0x6ed4e4
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x5a
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x5b
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [esi + 0x28]
call fcn.0051a170
push eax
mov ecx, edi
call fcn.00436bb0
jmp 0x5213f4
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 9
push str.short_app
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x5c
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x5d
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [esi + 0x28]
call fcn.0051a170
push eax
mov ecx, edi
call fcn.00436bb0
jmp 0x5213f4
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 0xa
push str.short_name
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x5e
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x5f
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [esi + 0x28]
call fcn.0051a170
push eax
mov ecx, edi
call fcn.00436bb0
jmp 0x5213f4
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 0xc
push str.service_name
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x60
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x61
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [esi + 0x28]
call fcn.0051a170
push eax
mov ecx, edi
call fcn.00436bb0
jmp 0x5213f4
push dword [ebp - 0x2e8]
mov ecx, dword [ebp - 0x2e4]
lea eax, [ebp - 0x290]
push 3
push eax
call fcn.0051f6b0
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x290]
mov dword [ebp - 0x2ec], 9
cmovae eax, dword [ebp - 0x290]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x290]
call fcn.0042c3a0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x521b44
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 0xc
push str.service_path
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x62
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x63
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [esi + 0x28]
call fcn.0051a170
mov byte [ebp - 4], 0x64
cmp dword [eax + 0x14], 0x10
jb 0x521ae9
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0050b290
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x521b06
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x260]
call fcn.0042c3a0
lea ecx, [ebp - 0x2c0]
call fcn.0042ad20
lea ecx, [ebp - 0x248]
call fcn.0042ad20
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.0042ad20
push 0xfde9
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0050b150
add esp, 0xc
mov ecx, edi
push eax
call fcn.00436bb0
lea ecx, [ebp - 0x260]
call fcn.0042ad20
jmp case.0x52050d.18
push dword [ebp - 0x2e8]
mov ecx, dword [ebp - 0x2e4]
lea eax, [ebp - 0x290]
push 5
push eax
call fcn.0051f6b0
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x290]
mov dword [ebp - 0x2ec], 0x11
cmovae eax, dword [ebp - 0x290]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x290]
call fcn.0042c3a0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x521b44
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 0x15
push str.appdata_cfg_file_path
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x65
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x66
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [esi + 0x28]
call fcn.0051a170
mov byte [ebp - 4], 0x67
jmp 0x521ae1
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 0xc
push str.activate_url
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x68
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x69
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [esi + 0x28]
call fcn.0051a170
push eax
mov ecx, edi
call fcn.00436bb0
jmp 0x5213f4
push dword [ebp - 0x2e8]
mov ecx, dword [ebp - 0x2e4]
lea eax, [ebp - 0x290]
push 3
push eax
call fcn.0051f6b0
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x290]
mov dword [ebp - 0x2ec], 0x21
cmovae eax, dword [ebp - 0x290]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x290]
call fcn.0042c3a0
push 0
push 0x6d18c8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0042a9a0
push 0xc
push str.app_ver_path
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0x6a
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042a9a0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x6b
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [esi + 0x28]
call fcn.0051a170
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x6c
jb 0x521dd6
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.0050b290
add esp, 0xc
lea ecx, [ebp - 0x260]
call fcn.0042ad20
lea ecx, [ebp - 0x248]
call fcn.0042ad20
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x70
call fcn.0042ad20
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x521e7c
cmp dword [ebp - 0x268], 0
je 0x521e7c
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
cmovae eax, dword [ebp - 0x278]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xfde9
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x2c0]
push eax
call fcn.0050b150
add esp, 0xc
mov ecx, edi
push eax
call fcn.00436bb0
lea ecx, [ebp - 0x2c0]
call fcn.0042ad20
jmp 0x521e8a
push 0
push 0x6d18c8
mov ecx, edi
call fcn.0042a9a0
lea ecx, [ebp - 0x278]
call fcn.0042c3a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret 0xc
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop dword [eax]
adc al, 5
push edx
add byte [ebp + 9], ah
push edx
add byte [0xbe00520b], cl
or eax, 0xfe60052
push edx
add byte [ebp + 0x53005211], dh
adc dl, byte [edx]
inc esp
adc edx, dword [edx]
sbb dl, byte [edx + edx*2]
add byte [esp + edx + 351141970], al
push edx
add byte [ebp + 0x15], bh
push edx
add byte [esi + edx], cl
push edx
add byte [ebx + 0x2a005216], bl
pop ss
push edx
add byte [ecx + 0x48005217], bh
sbb byte [edx], dl
xlatb
sbb byte [edx], dl
xchg ebp, eax
push ds
push edx
add byte [ebp - 0x6affade2], dl
push ds
push edx
add byte [ebp + 0x6600521e], dl
sbb dword [edx], edx
cmc
sbb dword [edx], edx
ja 0x521f39
push edx
add byte [eax + 0x1c], ch
push edx
add bh, dh
sbb al, 0x52
add ah, cl
int3
test ecx, ecx
je 0x521f4a
push esi
call fcn.00521f80
mov eax, esi
pop esi
pop ebp
ret 4
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
push 0x6d1800
mov word [esi], ax
call fcn.0043fcb0
mov eax, esi
pop esi
pop ebp
ret 4