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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53235c
mov eax, dword fs:[0]
push eax
sub esp, 0x8a4
mov eax, dword [0x58a464]
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.004ad5f0
push 0x208
lea eax, [ebp - 0x62c]
push 0
push eax
call fcn.004ad5f0
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.004ad5f0
add esp, 8
lea eax, [ebp - 0x834]
push eax
push ecx
lea ecx, [ebp - 0x424]
call fcn.00408180
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
cmp word [ebp - 0x424], 0
jne 0x4083f2
xor ecx, ecx
jmp 0x40840f
lea ecx, [ebp - 0x424]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408400
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x424]
mov ecx, 0x58fee8
push eax
call fcn.004065f0
push ecx
lea eax, [ebp - 0x834]
push eax
push ecx
lea ecx, [ebp - 0x62c]
call fcn.00408180
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor eax, eax
mov dword [ebp - 0x874], 7
xorps xmm0, xmm0
mov dword [ebp - 0x878], 0
movsd qword [ebp - 0x8b0], xmm0
mov word [ebp - 0x888], ax
cmp word [ebp - 0x62c], ax
jne 0x408477
xor ecx, ecx
jmp 0x40848f
lea ecx, [ebp - 0x62c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408480
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x888]
call fcn.004065f0
push 0x19
push str.HudunInstallerConfig.ini
lea ecx, [ebp - 0x888]
mov dword [ebp - 4], 0
call fcn.00406810
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x4084c5
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 0x4084eb
xor ecx, ecx
jmp 0x4084ff
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4084f0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x84c]
call fcn.004065f0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x874]
cmp eax, 8
jb 0x40852e
inc eax
lea ecx, [ebp - 0x888]
push eax
push dword [ebp - 0x888]
call fcn.00406d50
xor eax, eax
mov dword [ebp - 0x874], 7
cmp dword [ebp - 0x838], 8
mov word [ebp - 0x888], ax
lea eax, [ebp - 0x84c]
cmovae eax, dword [ebp - 0x84c]
push eax
mov dword [ebp - 0x878], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408a1d
cmp dword [ebp - 0x838], 8
lea eax, [ebp - 0x84c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmovae eax, dword [ebp - 0x84c]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push str.http:__tj2.sjhfrj.com_software_169
push str.DownloadUrl
push 0x56ea40
call esi
lea eax, [ebp - 0x21c]
mov ecx, 0x58feb8
push eax
call fcn.00408240
cmp dword [ebp - 0x838], 8
lea eax, [ebp - 0x84c]
cmovae eax, dword [ebp - 0x84c]
push eax
push 1
push str.DownloadType
push 0x56ea40
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [ebp - 0x838], 8
mov dword [0x58ff60], eax
lea eax, [ebp - 0x84c]
cmovae eax, dword [ebp - 0x84c]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x56ea6c
push str.IsCheckNet
push 0x56ea40
call esi
xor eax, eax
mov dword [ebp - 0x85c], 7
mov dword [ebp - 0x860], 0
mov word [ebp - 0x870], ax
cmp word [ebp - 0x21c], ax
jne 0x40863f
xor ecx, ecx
jmp 0x40865f
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408650
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x870]
call fcn.004065f0
push 0x56ea6c
lea ecx, [ebp - 0x870]
call fcn.00409430
test eax, eax
mov eax, dword [ebp - 0x85c]
sete bl
cmp eax, 8
jb 0x4086a5
inc eax
lea ecx, [ebp - 0x870]
push eax
push dword [ebp - 0x870]
call fcn.00406d50
cmp dword [ebp - 0x838], 8
lea eax, [ebp - 0x84c]
mov byte [0x58ff64], bl
cmovae eax, dword [ebp - 0x84c]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x56ea6c
push str.IsEnableAppSensors
push 0x56ea40
call esi
xor eax, eax
mov dword [ebp - 0x85c], 7
mov dword [ebp - 0x860], 0
mov word [ebp - 0x870], ax
cmp word [ebp - 0x21c], ax
jne 0x408707
xor ecx, ecx
jmp 0x40871f
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408710
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x870]
call fcn.004065f0
push 0x56ea6c
lea ecx, [ebp - 0x870]
call fcn.00409430
test eax, eax
mov eax, dword [ebp - 0x85c]
sete bl
cmp eax, 8
jb 0x408765
inc eax
lea ecx, [ebp - 0x870]
push eax
push dword [ebp - 0x870]
call fcn.00406d50
cmp dword [ebp - 0x838], 8
lea eax, [ebp - 0x84c]
mov byte [0x58ff65], bl
cmovae eax, dword [ebp - 0x84c]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push str..downloader
push str.DlAppNameSuffix
push 0x56ea40
call esi
cmp word [ebp - 0x21c], 0
jne 0x4087ab
xor ecx, ecx
jmp 0x4087c3
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4087b4
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
mov ecx, 0x58ff00
push eax
call fcn.004065f0
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 0x56e974
push str.m_DlAppVersion
push 0x56ea40
call esi
cmp word [ebp - 0x21c], 0
jne 0x408815
xor ecx, ecx
jmp 0x40882f
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408820
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
mov ecx, 0x58ff18
push eax
call fcn.004065f0
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 0x56eb10
push str.DownloadScale
push 0x56ea40
call esi
mov byte [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0x85c], 7
mov dword [ebp - 0x860], 0
mov word [ebp - 0x870], ax
cmp word [ebp - 0x21c], ax
jne 0x4088a1
xor ecx, ecx
jmp 0x4088bf
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4088b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x870]
call fcn.004065f0
lea ecx, [ebp - 0x870]
mov byte [ebp - 4], 4
call fcn.004081d0
mov eax, dword [ebp - 0x85c]
movsd qword [ebp - 0x8a8], xmm0
cmp eax, 8
jb 0x40890f
inc eax
lea ecx, [ebp - 0x870]
push eax
push dword [ebp - 0x870]
call fcn.00406d50
movsd xmm0, qword [ebp - 0x8a8]
mov dword [ebp - 4], 2
jmp 0x40894c
cmp dword [ebp - 0x838], 8
lea eax, [ebp - 0x84c]
movsd qword [0x58ff68], xmm0
cmovae eax, dword [ebp - 0x84c]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x56e974
push str.InstCmd
push 0x56ea40
call esi
xor eax, eax
mov dword [ebp - 0x88c], 7
mov dword [ebp - 0x890], 0
mov word [ebp - 0x8a0], ax
cmp word [ebp - 0x21c], ax
jne 0x4089b0
xor ecx, ecx
jmp 0x4089cf
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4089c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x8a0]
call fcn.004065f0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x8a0]
mov byte [ebp - 4], 6
push eax
mov ecx, 0x58ff30
call fcn.004066f0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x88c]
cmp eax, 8
jb 0x408a1d
inc eax
lea ecx, [ebp - 0x8a0]
push eax
push dword [ebp - 0x8a0]
call fcn.00406d50
push 0x15
push str.ClassicOldPhotoRepair
mov ecx, 0x58feb8
call fcn.004065f0
push 5
push 0x56eb70
mov ecx, 0x58fed0
call fcn.004065f0
mov eax, dword [ebp - 0x838]
cmp eax, 8
jb 0x408a5d
inc eax
lea ecx, [ebp - 0x84c]
push eax
push dword [ebp - 0x84c]
call fcn.00406d50
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.004f0482
mov esp, ebp
pop ebp
ret