Function at 0x403e30
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511afc
mov eax, dword fs:[0]
push eax
sub esp, 0x8ac
mov eax, dword [0x55d198]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x208
lea eax, [ebp - 0x630]
push 0
push eax
call fcn.00444b40
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x208
push 0
push eax
call fcn.00444b40
add esp, 0xc
lea eax, [ebp - 0x630]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea eax, [ebp - 0x838]
push 0
push eax
call fcn.00444b40
add esp, 8
lea eax, [ebp - 0x630]
mov edx, 0x104
push eax
push ecx
lea ecx, [ebp - 0x838]
call fcn.00403de0
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
push ecx
lea eax, [ebp - 0x630]
mov edx, 0x104
push eax
push ecx
lea ecx, [ebp - 0x428]
call fcn.00403de0
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor eax, eax
mov dword [ebp - 0x878], 7
xorps xmm0, xmm0
mov dword [ebp - 0x87c], 0
movsd qword [ebp - 0x8b8], xmm0
mov word [ebp - 0x88c], ax
cmp word [ebp - 0x428], ax
jne 0x403f37
xor ecx, ecx
jmp 0x403f4f
lea ecx, [ebp - 0x428]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403f40
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x88c]
call fcn.00403800
push 0x14
push str.CNInstallConfig.ini
lea ecx, [ebp - 0x88c]
mov dword [ebp - 4], 0
call fcn.00403070
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x403f85
mov edx, dword [edx]
xor eax, eax
mov dword [ebp - 0x83c], 7
mov dword [ebp - 0x840], 0
mov word [ebp - 0x850], ax
cmp word [edx], ax
jne 0x403fab
xor ecx, ecx
jmp 0x403fbf
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403fb0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x850]
call fcn.00403800
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x878]
cmp eax, 8
jb 0x403fee
inc eax
lea ecx, [ebp - 0x88c]
push eax
push dword [ebp - 0x88c]
call fcn.00403a50
xor eax, eax
mov dword [ebp - 0x878], 7
cmp dword [ebp - 0x83c], 8
mov word [ebp - 0x88c], ax
lea eax, [ebp - 0x850]
cmovae eax, dword [ebp - 0x850]
push eax
mov dword [ebp - 0x87c], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40441c
cmp dword [ebp - 0x83c], 8
lea ecx, [ebp - 0x850]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, 0x562f50
cmovae ecx, dword [ebp - 0x850]
mov eax, edi
cmp dword [0x562f64], 8
push ecx
cmovae eax, dword [0x562f50]
lea ecx, [ebp - 0x220]
push 0x104
push ecx
push eax
push str.DownloadUrl
push str.Install
call esi
cmp word [ebp - 0x220], 0
jne 0x404085
xor ecx, ecx
jmp 0x40409f
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404090
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.00403800
cmp dword [ebp - 0x83c], 8
lea eax, [ebp - 0x850]
cmovae eax, dword [ebp - 0x850]
cmp dword [0x562f64], 8
push eax
cmovae edi, dword [0x562f50]
lea eax, [ebp - 0x220]
push 0x104
push eax
push edi
push str.UpdateUrl
push str.Install
call esi
cmp word [ebp - 0x220], 0
jne 0x4040f8
xor ecx, ecx
jmp 0x404110
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404101
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
mov ecx, 0x562f38
push eax
call fcn.00403800
cmp dword [ebp - 0x83c], 8
lea eax, [ebp - 0x850]
cmovae eax, dword [ebp - 0x850]
push eax
push 1
push str.DownloadType
push str.Install
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [ebp - 0x83c], 8
mov dword [0x562f80], eax
lea eax, [ebp - 0x850]
cmovae eax, dword [ebp - 0x850]
push eax
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0x543ff0
push str.DownloadScale
push str.Install
call esi
mov byte [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0x860], 7
mov dword [ebp - 0x864], 0
mov word [ebp - 0x874], ax
cmp word [ebp - 0x220], ax
jne 0x4041ae
xor ecx, ecx
jmp 0x4041c6
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4041b7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x874]
call fcn.00403800
lea ecx, [ebp - 0x874]
mov byte [ebp - 4], 4
call fcn.00404e60
mov eax, dword [ebp - 0x860]
movsd qword [ebp - 0x8b0], xmm0
cmp eax, 8
jb 0x404216
inc eax
lea ecx, [ebp - 0x874]
push eax
push dword [ebp - 0x874]
call fcn.00403a50
movsd xmm0, qword [ebp - 0x8b0]
mov dword [ebp - 4], 2
jmp 0x404253
cmp dword [ebp - 0x83c], 8
lea eax, [ebp - 0x850]
movsd qword [0x562f88], xmm0
cmovae eax, dword [ebp - 0x850]
push eax
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0x544088
push str.InstCmd
push str.Install
call esi
xor eax, eax
mov dword [ebp - 0x894], 7
mov dword [ebp - 0x898], 0
mov word [ebp - 0x8a8], ax
cmp word [ebp - 0x220], ax
jne 0x4042b7
xor ecx, ecx
jmp 0x4042cf
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4042c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x8a8]
call fcn.00403800
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x8a8]
mov byte [ebp - 4], 6
push eax
mov ecx, 0x562f68
call fcn.004033f0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x894]
cmp eax, 8
jb 0x40431d
inc eax
lea ecx, [ebp - 0x8a8]
push eax
push dword [ebp - 0x8a8]
call fcn.00403a50
cmp dword [ebp - 0x83c], 8
lea eax, [ebp - 0x850]
cmovae eax, dword [ebp - 0x850]
push eax
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0x544088
push str.IsTest
push str.Install
call esi
xor eax, eax
mov dword [ebp - 0x860], 7
mov dword [ebp - 0x864], 0
mov word [ebp - 0x874], ax
cmp word [ebp - 0x220], ax
jne 0x404379
xor ecx, ecx
jmp 0x404391
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404382
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x874]
call fcn.00403800
push str.true
lea ecx, [ebp - 0x874]
call fcn.00404d00
test eax, eax
mov eax, dword [ebp - 0x860]
sete bl
cmp eax, 8
jb 0x4043d7
inc eax
lea ecx, [ebp - 0x874]
push eax
push dword [ebp - 0x874]
call fcn.00403a50
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x562f2c]
cmp eax, dword [ecx + 0x10]
jle 0x404416
push 0x562f2c
call fcn.004d179e
add esp, 4
cmp dword [0x562f2c], 0xffffffff
jne 0x404416
push 0x562f2c
mov byte [0x562f30], 0
call fcn.004d175f
add esp, 4
mov byte [0x562f30], bl
mov eax, dword [ebp - 0x83c]
cmp eax, 8
jb 0x40443a
inc eax
lea ecx, [ebp - 0x850]
push eax
push dword [ebp - 0x850]
call fcn.00403a50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d1626
mov esp, ebp
pop ebp
ret