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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53108c
mov eax, dword fs:[0]
push eax
sub esp, 0x8a4
mov eax, dword [0x5796f4]
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 - 0x834]
push 0
push eax
call fcn.004d7080
push 0x208
lea eax, [ebp - 0x62c]
push 0
push eax
call fcn.004d7080
add esp, 0x18
lea eax, [ebp - 0x834]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.004d7080
add esp, 8
lea eax, [ebp - 0x834]
push eax
push ecx
lea ecx, [ebp - 0x424]
call fcn.00401e40
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
cmp word [ebp - 0x424], 0
jne 0x4020b2
xor ecx, ecx
jmp 0x4020cf
lea ecx, [ebp - 0x424]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4020c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x424]
mov ecx, 0x57f298
push eax
call fcn.004031a0
push ecx
lea eax, [ebp - 0x834]
push eax
push ecx
lea ecx, [ebp - 0x62c]
call fcn.00401e40
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor eax, eax
mov dword [ebp - 0x87c], 7
xorps xmm0, xmm0
mov dword [ebp - 0x880], 0
movsd qword [ebp - 0x8b0], xmm0
mov word [ebp - 0x890], ax
cmp word [ebp - 0x62c], ax
jne 0x402137
xor ecx, ecx
jmp 0x40214f
lea ecx, [ebp - 0x62c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402140
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x890]
call fcn.004031a0
push 0x19
push str.HudunInstallerConfig.ini
lea ecx, [ebp - 0x890]
mov dword [ebp - 4], 0
call fcn.004033c0
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x402185
mov edx, dword [edx]
xor eax, eax
mov dword [ebp - 0x838], 7
mov dword [ebp - 0x83c], 0
mov word [ebp - 0x84c], ax
cmp word [edx], ax
jne 0x4021ab
xor ecx, ecx
jmp 0x4021bf
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4021b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x84c]
call fcn.004031a0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x87c]
cmp eax, 8
jb 0x4021ee
inc eax
lea ecx, [ebp - 0x890]
push eax
push dword [ebp - 0x890]
call fcn.004017c0
xor eax, eax
mov dword [ebp - 0x87c], 7
lea ecx, [ebp - 0x850]
mov dword [ebp - 0x880], 0
mov word [ebp - 0x890], ax
mov edi, str.http:__tj2.sjhfrj.com_software_8
call fcn.00420150
cmp dword [ebp - 0x850], 0
lea eax, [ebp - 0x84c]
mov esi, str.http:__tj2.sjhfrj.com_software_117
cmove esi, edi
cmp dword [ebp - 0x838], 8
cmovae eax, dword [ebp - 0x84c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4026ed
cmp dword [ebp - 0x838], 8
lea eax, [ebp - 0x84c]
cmovae eax, dword [ebp - 0x84c]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.DownloadUrl
push str.Install
call esi
lea eax, [ebp - 0x21c]
mov ecx, 0x57f268
push eax
call fcn.00401f00
cmp dword [ebp - 0x838], 8
lea eax, [ebp - 0x84c]
cmovae eax, dword [ebp - 0x84c]
push eax
push 1
push str.DownloadType
push str.Install
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [ebp - 0x838], 8
mov dword [0x57f310], eax
lea eax, [ebp - 0x84c]
cmovae eax, dword [ebp - 0x84c]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push str.true
push str.IsCheckNet
push str.Install
call esi
xor eax, eax
mov dword [ebp - 0x864], 7
mov dword [ebp - 0x868], 0
mov word [ebp - 0x878], ax
cmp word [ebp - 0x21c], ax
jne 0x40231a
xor ecx, ecx
jmp 0x402332
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402323
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x878]
call fcn.004031a0
push str.true
lea ecx, [ebp - 0x878]
call fcn.00403a70
test eax, eax
mov eax, dword [ebp - 0x864]
sete bl
cmp eax, 8
jb 0x402378
inc eax
lea ecx, [ebp - 0x878]
push eax
push dword [ebp - 0x878]
call fcn.004017c0
cmp dword [ebp - 0x838], 8
lea eax, [ebp - 0x84c]
mov byte [0x57f314], bl
cmovae eax, dword [ebp - 0x84c]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push str.true
push str.IsEnableAppSensors
push str.Install
call esi
xor eax, eax
mov dword [ebp - 0x864], 7
mov dword [ebp - 0x868], 0
mov word [ebp - 0x878], ax
cmp word [ebp - 0x21c], ax
jne 0x4023da
xor ecx, ecx
jmp 0x4023f2
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4023e3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x878]
call fcn.004031a0
push str.true
lea ecx, [ebp - 0x878]
call fcn.00403a70
test eax, eax
mov eax, dword [ebp - 0x864]
sete bl
cmp eax, 8
jb 0x402438
inc eax
lea ecx, [ebp - 0x878]
push eax
push dword [ebp - 0x878]
call fcn.004017c0
cmp dword [ebp - 0x838], 8
lea eax, [ebp - 0x84c]
mov byte [0x57f315], bl
cmovae eax, dword [ebp - 0x84c]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push str..downloader
push str.DlAppNameSuffix
push str.Install
call esi
cmp word [ebp - 0x21c], 0
jne 0x40247e
xor ecx, ecx
jmp 0x402496
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402487
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
mov ecx, 0x57f2b0
push eax
call fcn.004031a0
cmp dword [ebp - 0x838], 8
lea eax, [ebp - 0x84c]
cmovae eax, dword [ebp - 0x84c]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x562a6c
push str.m_DlAppVersion
push str.Install
call esi
cmp word [ebp - 0x21c], 0
jne 0x4024e8
xor ecx, ecx
jmp 0x402500
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4024f1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
mov ecx, 0x57f2c8
push eax
call fcn.004031a0
cmp dword [ebp - 0x838], 8
lea eax, [ebp - 0x84c]
cmovae eax, dword [ebp - 0x84c]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x562c50
push str.DownloadScale
push str.Install
call esi
mov byte [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0x864], 7
mov dword [ebp - 0x868], 0
mov word [ebp - 0x878], ax
cmp word [ebp - 0x21c], ax
jne 0x402572
xor ecx, ecx
jmp 0x40258f
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402580
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x878]
call fcn.004031a0
lea ecx, [ebp - 0x878]
mov byte [ebp - 4], 4
call fcn.00401e90
mov eax, dword [ebp - 0x864]
movsd qword [ebp - 0x854], xmm0
cmp eax, 8
jb 0x4025df
inc eax
lea ecx, [ebp - 0x878]
push eax
push dword [ebp - 0x878]
call fcn.004017c0
movsd xmm0, qword [ebp - 0x854]
mov dword [ebp - 4], 2
jmp 0x40261c
cmp dword [ebp - 0x838], 8
lea eax, [ebp - 0x84c]
movsd qword [0x57f318], xmm0
cmovae eax, dword [ebp - 0x84c]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x562a6c
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 - 0x21c], ax
jne 0x402680
xor ecx, ecx
jmp 0x40269f
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402690
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x8a8]
call fcn.004031a0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x8a8]
mov byte [ebp - 4], 6
push eax
mov ecx, 0x57f2e0
call fcn.004032a0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x894]
cmp eax, 8
jb 0x4026ed
inc eax
lea ecx, [ebp - 0x8a8]
push eax
push dword [ebp - 0x8a8]
call fcn.004017c0
push 0xe
push str.ScreenRecorder
mov ecx, 0x57f268
call fcn.004031a0
push 5
push 0x562ca4
mov ecx, 0x57f280
call fcn.004031a0
mov eax, dword [ebp - 0x838]
cmp eax, 8
jb 0x40272d
inc eax
lea ecx, [ebp - 0x84c]
push eax
push dword [ebp - 0x84c]
call fcn.004017c0
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.004edc72
mov esp, ebp
pop ebp
ret