Function at 0x404720
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x1050
call fcn.00426cc0
mov eax, dword [0x44a590]
xor eax, esp
mov dword [esp + 0x104c], eax
mov eax, dword [esp + 0x1054]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x206
lea ecx, [esp + 0x63a]
push ebp
push ecx
mov dword [esp + 0x1c], eax
mov word [esp + 0x640], bp
call fcn.00425c60
push 0x206
lea edx, [esp + 0xc5e]
push ebp
push edx
mov word [esp + 0xc64], bp
call fcn.00425c60
push 0x206
lea eax, [esp + 0x85a]
push ebp
push eax
mov word [esp + 0x860], bp
call fcn.00425c60
push 0x206
lea ecx, [esp + 0xa6e]
push ebp
push ecx
mov word [esp + 0xa74], bp
call fcn.00425c60
push 0x206
lea edx, [esp + 0x25a]
push ebp
push edx
mov word [esp + 0x260], bp
call fcn.00425c60
push 0x206
lea eax, [esp + 0x5e]
push ebp
push eax
mov word [esp + 0x64], bp
call fcn.00425c60
add esp, 0x48
push ebp
push 0x2b
lea ecx, [esp + 0x63c]
push ecx
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [esp + 0x634]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x404804
mov edx, dword [0x440c74]
mov dword [edi], edx
lea edi, [esp + 0x634]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x404822
mov ecx, 7
mov esi, 0x440c78
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x634]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x404844
lea eax, [esp + 0x634]
mov dword [edi], edx
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x404860
mov edx, dword [str.DongFang]
mov ecx, dword [0x440c98]
mov dword [eax], edx
mov edx, dword [0x440c9c]
mov dword [eax + 4], ecx
mov ecx, dword [0x440ca0]
mov dword [eax + 8], edx
mov dx, word [0x440ca4]
mov dword [eax + 0xc], ecx
mov word [eax + 0x10], dx
lea eax, [esp + 0x634]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x4048a4
mov ecx, dword [str..ini]
mov edx, dword [0x440cac]
mov dword [eax], ecx
mov cx, word [0x440cb0]
mov dword [eax + 4], edx
lea edx, [esp + 0x634]
push edx
push 0x104
mov word [eax + 8], cx
lea eax, [esp + 0xc54]
push eax
push 0x440af4
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
jmp 0x404900
movzx ecx, word [esp + eax + 0xc4c]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bp
jne 0x404900
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
cmp cx, bp
jne 0x404920
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x404940
mov ecx, dword [str.2.4.0.0618]
mov edx, dword [0x440d0c]
mov dword [eax], ecx
mov ecx, dword [0x440d10]
mov dword [eax + 4], edx
mov edx, dword [0x440d14]
mov dword [eax + 8], ecx
mov ecx, dword [0x440d18]
mov dword [eax + 0xc], edx
mov dx, word [0x440d1c]
lea edi, [esp + 0x1c]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x404990
mov eax, dword [0x440c74]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x1c]
push ecx
mov dword [edi], eax
call ebx
test eax, eax
je 0x404a70
push 0x206
lea edx, [esp + 0x432]
push ebp
push edx
mov word [esp + 0x438], bp
call fcn.00425c60
add esp, 0xc
xor eax, eax
jmp 0x4049e0
movzx ecx, word [esp + eax + 0x1c]
mov word [esp + eax + 0x42c], cx
add eax, 2
cmp cx, bp
jne 0x4049e0
lea edi, [esp + 0x42c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x404a00
mov ecx, 6
mov esi, str.DFConfig.exe
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x42c]
push eax
movsw word es:[edi], word [esi]
call ebx
test eax, eax
je 0x404a70
lea eax, [esp + 0x224]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x404a32
mov edi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x228]
push ecx
lea esi, [edi + 0x94]
call fcn.004014f0
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x404a60
jmp 0x40518b
push 0x206
lea eax, [esp + 0xe5a]
push ebp
push eax
mov word [esp + 0xe60], bp
call fcn.00425c60
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + str.SOFTWARE_]
mov word [esp + eax + 0xe54], cx
add eax, 2
cmp cx, bp
jne 0x404a90
lea edi, [esp + 0xe54]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x404ab1
mov ecx, 7
mov esi, 0x440c78
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebp
lea edx, [esp + 0xe60]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404c84
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xa48]
push ecx
push ebp
push ebp
push str.InstallPath
push edx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404c84
mov edi, edi
movzx ecx, word [esp + eax + 0xa44]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bp
jne 0x404b20
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
cmp cx, bp
jne 0x404b40
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x404b60
mov ecx, dword [str.2.4.0.0618]
mov edx, dword [0x440d0c]
mov dword [eax], ecx
mov ecx, dword [0x440d10]
mov dword [eax + 4], edx
mov edx, dword [0x440d14]
mov dword [eax + 8], ecx
mov ecx, dword [0x440d18]
mov dword [eax + 0xc], edx
mov dx, word [0x440d1c]
lea edi, [esp + 0x1c]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x404bb0
mov eax, dword [0x440c74]
lea ecx, [esp + 0x1c]
push ecx
mov dword [edi], eax
call ebx
test eax, eax
je 0x404c84
push 0x206
lea edx, [esp + 0x432]
push ebp
push edx
mov word [esp + 0x438], bp
call fcn.00425c60
add esp, 0xc
xor eax, eax
jmp 0x404c00
movzx ecx, word [esp + eax + 0x1c]
mov word [esp + eax + 0x42c], cx
add eax, 2
cmp cx, bp
jne 0x404c00
lea edi, [esp + 0x42c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x404c20
mov ecx, 6
mov esi, str.DFConfig.exe
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x42c]
push eax
movsw word es:[edi], word [esi]
call ebx
test eax, eax
je 0x404c84
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x10]
lea edx, [ebx + 0x94]
push edx
lea edx, [esp + 0x228]
call fcn.00401330
lea eax, [ebx + 0xb0]
push eax
lea edx, [esp + 0x20]
call fcn.00401330
call fcn.00405700
jmp 0x4051a0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push 0x26
lea edx, [esp + 0x844]
push edx
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [esp + 0x83c]
add edi, 0xfffffffe
jmp 0x404cb0
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x404cb0
mov edx, dword [0x440c74]
mov dword [edi], edx
lea edi, [esp + 0x83c]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x404cd0
mov ecx, 7
mov esi, 0x440c78
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x83c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x404cf2
mov dword [edi], edx
xor eax, eax
jmp 0x404d10
movzx ecx, word [esp + eax + 0x83c]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bp
jne 0x404d10
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
cmp cx, bp
jne 0x404d30
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x404d50
mov ecx, dword [str.2.4.0.0618]
mov dword [eax], ecx
mov ecx, dword [0x440d0c]
mov dword [eax + 4], ecx
mov ecx, dword [0x440d10]
mov dword [eax + 8], ecx
mov ecx, dword [0x440d14]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x440d18]
mov dword [eax + 0x10], ecx
mov cx, word [0x440d1c]
lea edi, [esp + 0x1c]
mov word [eax + 0x14], cx
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x404da0
mov dword [edi], edx
lea edx, [esp + 0x1c]
push edx
call ebx
test eax, eax
je 0x404e7a
push 0x206
lea eax, [esp + 0x432]
push ebp
push eax
mov word [esp + 0x438], bp
call fcn.00425c60
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [esp + eax + 0x1c]
mov word [esp + eax + 0x42c], cx
add eax, 2
cmp cx, bp
jne 0x404de0
lea edi, [esp + 0x42c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x404e00
mov ecx, 6
mov esi, str.DFConfig.exe
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x42c]
push ecx
movsw word es:[edi], word [esi]
call ebx
test eax, eax
je 0x404e7a
lea eax, [esp + 0x224]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x404e32
mov edi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x228]
push edx
lea esi, [edi + 0x94]
call fcn.004014f0
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x404e60
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x20]
push eax
jmp 0x405195
lea ecx, [esp + 0xc4c]
push ecx
call ebx
test eax, eax
je 0x404f8a
xor eax, eax
mov edi, edi
movzx ecx, word [esp + eax + 0xc4c]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bp
jne 0x404e90
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
cmp cx, bp
jne 0x404eb0
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x404ed0
mov edx, dword [str.2.4.0.0618]
mov ecx, dword [0x440d0c]
mov dword [eax], edx
mov edx, dword [0x440d10]
mov dword [eax + 4], ecx
mov ecx, dword [0x440d14]
mov dword [eax + 8], edx
mov edx, dword [0x440d18]
mov dword [eax + 0xc], ecx
mov cx, word [0x440d1c]
lea edi, [esp + 0x1c]
mov dword [eax + 0x10], edx
mov word [eax + 0x14], cx
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x404f20
mov edx, dword [0x440c74]
lea eax, [esp + 0x224]
mov dword [edi], edx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x404f40
mov edi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x228]
push eax
lea esi, [edi + 0x94]
call fcn.004014f0
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x404f70
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x20]
push ecx
jmp 0x405195
lea edx, [esp + 0xa44]
push edx
call ebx
test eax, eax
je 0x405090
xor eax, eax
mov edi, edi
movzx ecx, word [esp + eax + 0xa44]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bp
jne 0x404fa0
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
cmp cx, bp
jne 0x404fc0
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x404fe0
mov ecx, dword [str.2.4.0.0618]
mov edx, dword [0x440d0c]
mov dword [eax], ecx
mov ecx, dword [0x440d10]
mov dword [eax + 4], edx
mov edx, dword [0x440d14]
mov dword [eax + 8], ecx
mov ecx, dword [0x440d18]
mov dword [eax + 0xc], edx
mov dx, word [0x440d1c]
lea edi, [esp + 0x1c]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x405030
mov eax, dword [0x440c74]
mov dword [edi], eax
lea eax, [esp + 0x224]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405050
mov edi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x228]
push ecx
lea esi, [edi + 0x94]
call fcn.004014f0
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405080
jmp 0x40518b
xor eax, eax
jmp 0x4050a0
movzx ecx, word [esp + eax + 0x83c]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bp
jne 0x4050a0
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x224]
mov word [esp + eax + 0x1c], cx
add eax, 2
cmp cx, bp
jne 0x4050c0
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x4050e0
mov ecx, dword [str.2.4.0.0618]
mov edx, dword [0x440d0c]
mov dword [eax], ecx
mov ecx, dword [0x440d10]
mov dword [eax + 4], edx
mov edx, dword [0x440d14]
mov dword [eax + 8], ecx
mov ecx, dword [0x440d18]
mov dword [eax + 0xc], edx
mov dx, word [0x440d1c]
lea edi, [esp + 0x1c]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x405130
mov eax, dword [0x440c74]
mov dword [edi], eax
lea eax, [esp + 0x224]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405150
mov edi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x228]
push ecx
lea esi, [edi + 0x94]
call fcn.004014f0
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405180
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x20]
push edx
lea esi, [edi + 0xb0]
call fcn.004014f0
mov ecx, dword [esp + 0x105c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004223ab
add esp, 0x1050
ret 4