Function at 0x405ab0
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.00424070
mov eax, dword [0x448728]
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.00423e40
push 0x206
lea edx, [esp + 0xc5e]
push ebp
push edx
mov word [esp + 0xc64], bp
call fcn.00423e40
push 0x206
lea eax, [esp + 0x85a]
push ebp
push eax
mov word [esp + 0x860], bp
call fcn.00423e40
push 0x206
lea ecx, [esp + 0xa6e]
push ebp
push ecx
mov word [esp + 0xa74], bp
call fcn.00423e40
push 0x206
lea edx, [esp + 0x25a]
push ebp
push edx
mov word [esp + 0x260], bp
call fcn.00423e40
push 0x206
lea eax, [esp + 0x5e]
push ebp
push eax
mov word [esp + 0x64], bp
call fcn.00423e40
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 0x405b94
mov edx, dword [0x43eda8]
mov dword [edi], edx
lea edi, [esp + 0x634]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x405bb2
mov ecx, 7
mov esi, 0x43edac
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 0x405bd4
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 0x405bf0
mov edx, dword [str.DongFang]
mov ecx, dword [0x43edcc]
mov dword [eax], edx
mov edx, dword [0x43edd0]
mov dword [eax + 4], ecx
mov ecx, dword [0x43edd4]
mov dword [eax + 8], edx
mov dx, word [0x43edd8]
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 0x405c34
mov ecx, dword [str..ini]
mov edx, dword [0x43ede0]
mov dword [eax], ecx
mov cx, word [0x43ede4]
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 0x43ecb8
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
jmp 0x405c90
movzx ecx, word [esp + eax + 0xc4c]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bp
jne 0x405c90
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 0x405cb0
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x405cd0
mov ecx, dword [str.2.3.1.1015]
mov edx, dword [0x43eefc]
mov dword [eax], ecx
mov ecx, dword [0x43ef00]
mov dword [eax + 4], edx
mov edx, dword [0x43ef04]
mov dword [eax + 8], ecx
mov ecx, dword [0x43ef08]
mov dword [eax + 0xc], edx
mov dx, word [0x43ef0c]
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 0x405d20
mov eax, dword [0x43eda8]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x1c]
push ecx
mov dword [edi], eax
call ebx
test eax, eax
je 0x405e00
push 0x206
lea edx, [esp + 0x432]
push ebp
push edx
mov word [esp + 0x438], bp
call fcn.00423e40
add esp, 0xc
xor eax, eax
jmp 0x405d70
movzx ecx, word [esp + eax + 0x1c]
mov word [esp + eax + 0x42c], cx
add eax, 2
cmp cx, bp
jne 0x405d70
lea edi, [esp + 0x42c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x405d90
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 0x405e00
lea eax, [esp + 0x224]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405dc2
mov edi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x228]
push ecx
lea esi, [edi + 0x74]
call fcn.00401210
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405df0
jmp 0x40651b
push 0x206
lea eax, [esp + 0xe5a]
push ebp
push eax
mov word [esp + 0xe60], bp
call fcn.00423e40
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 0x405e20
lea edi, [esp + 0xe54]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x405e41
mov ecx, 7
mov esi, 0x43edac
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 0x406011
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 0x406011
mov edi, edi
movzx ecx, word [esp + eax + 0xa44]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bp
jne 0x405eb0
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 0x405ed0
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x405ef0
mov ecx, dword [str.2.3.1.1015]
mov edx, dword [0x43eefc]
mov dword [eax], ecx
mov ecx, dword [0x43ef00]
mov dword [eax + 4], edx
mov edx, dword [0x43ef04]
mov dword [eax + 8], ecx
mov ecx, dword [0x43ef08]
mov dword [eax + 0xc], edx
mov dx, word [0x43ef0c]
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 0x405f40
mov eax, dword [0x43eda8]
lea ecx, [esp + 0x1c]
push ecx
mov dword [edi], eax
call ebx
test eax, eax
je 0x406011
push 0x206
lea edx, [esp + 0x432]
push ebp
push edx
mov word [esp + 0x438], bp
call fcn.00423e40
add esp, 0xc
xor eax, eax
jmp 0x405f90
movzx ecx, word [esp + eax + 0x1c]
mov word [esp + eax + 0x42c], cx
add eax, 2
cmp cx, bp
jne 0x405f90
lea edi, [esp + 0x42c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x405fb0
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 0x406011
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x10]
lea edx, [ebx + 0x74]
push edx
lea edx, [esp + 0x228]
call fcn.004011e0
lea eax, [ebx + 0x90]
push eax
lea edx, [esp + 0x20]
call fcn.004011e0
call fcn.00406930
jmp 0x406530
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 0x406040
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x406040
mov edx, dword [0x43eda8]
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 0x406060
mov ecx, 7
mov esi, 0x43edac
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 0x406082
mov dword [edi], edx
xor eax, eax
jmp 0x4060a0
movzx ecx, word [esp + eax + 0x83c]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bp
jne 0x4060a0
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 0x4060c0
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x4060e0
mov ecx, dword [str.2.3.1.1015]
mov dword [eax], ecx
mov ecx, dword [0x43eefc]
mov dword [eax + 4], ecx
mov ecx, dword [0x43ef00]
mov dword [eax + 8], ecx
mov ecx, dword [0x43ef04]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x43ef08]
mov dword [eax + 0x10], ecx
mov cx, word [0x43ef0c]
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 0x406130
mov dword [edi], edx
lea edx, [esp + 0x1c]
push edx
call ebx
test eax, eax
je 0x40620a
push 0x206
lea eax, [esp + 0x432]
push ebp
push eax
mov word [esp + 0x438], bp
call fcn.00423e40
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 0x406170
lea edi, [esp + 0x42c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x406190
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 0x40620a
lea eax, [esp + 0x224]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4061c2
mov edi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x228]
push edx
lea esi, [edi + 0x74]
call fcn.00401210
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4061f0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x20]
push eax
jmp 0x406525
lea ecx, [esp + 0xc4c]
push ecx
call ebx
test eax, eax
je 0x40631a
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 0x406220
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 0x406240
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x406260
mov edx, dword [str.2.3.1.1015]
mov ecx, dword [0x43eefc]
mov dword [eax], edx
mov edx, dword [0x43ef00]
mov dword [eax + 4], ecx
mov ecx, dword [0x43ef04]
mov dword [eax + 8], edx
mov edx, dword [0x43ef08]
mov dword [eax + 0xc], ecx
mov cx, word [0x43ef0c]
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 0x4062b0
mov edx, dword [0x43eda8]
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 0x4062d0
mov edi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x228]
push eax
lea esi, [edi + 0x74]
call fcn.00401210
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
jmp 0x406300
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x406300
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x20]
push ecx
jmp 0x406525
lea edx, [esp + 0xa44]
push edx
call ebx
test eax, eax
je 0x406420
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 0x406330
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 0x406350
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x406370
mov ecx, dword [str.2.3.1.1015]
mov edx, dword [0x43eefc]
mov dword [eax], ecx
mov ecx, dword [0x43ef00]
mov dword [eax + 4], edx
mov edx, dword [0x43ef04]
mov dword [eax + 8], ecx
mov ecx, dword [0x43ef08]
mov dword [eax + 0xc], edx
mov dx, word [0x43ef0c]
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 0x4063c0
mov eax, dword [0x43eda8]
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 0x4063e0
mov edi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x228]
push ecx
lea esi, [edi + 0x74]
call fcn.00401210
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
jmp 0x406410
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x406410
jmp 0x40651b
xor eax, eax
jmp 0x406430
movzx ecx, word [esp + eax + 0x83c]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bp
jne 0x406430
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 0x406450
lea eax, [esp + 0x1c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x406470
mov ecx, dword [str.2.3.1.1015]
mov edx, dword [0x43eefc]
mov dword [eax], ecx
mov ecx, dword [0x43ef00]
mov dword [eax + 4], edx
mov edx, dword [0x43ef04]
mov dword [eax + 8], ecx
mov ecx, dword [0x43ef08]
mov dword [eax + 0xc], edx
mov dx, word [0x43ef0c]
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 0x4064c0
mov eax, dword [0x43eda8]
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 0x4064e0
mov edi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x228]
push ecx
lea esi, [edi + 0x74]
call fcn.00401210
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
jmp 0x406510
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x406510
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x20]
push edx
lea esi, [edi + 0x90]
call fcn.00401210
mov ecx, dword [esp + 0x105c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042178f
add esp, 0x1050
ret 4