Function at 0x439d80
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf44b
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x667ce0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005a2240
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.005a2240
add esp, 0x18
lea eax, [ebp - 0x218]
push 0
push 0x2b
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [esi + 0x70], 8
lea ecx, [esi + 0x5c]
jb 0x439df6
mov ecx, dword [ecx]
lea edx, [ebp - 0x420]
sub edx, ecx
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x439e00
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x439e20
mov eax, dword [0x5d4964]
lea edx, [ebp - 0x218]
mov dword [edi], eax
add edx, 0xfffffffe
nop dword [eax]
mov cx, word [edx + 2]
lea edx, [edx + 2]
test cx, cx
jne 0x439e40
mov ecx, dword [0x5d4e0c]
lea edi, [ebp - 0x218]
mov dword [edx], ecx
add edi, 0xfffffffe
mov ecx, dword [str.PDFReader]
mov dword [edx + 4], ecx
mov ecx, dword [0x5d4e14]
mov dword [edx + 8], ecx
mov ecx, dword [0x5d4e18]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x5d4e1c]
mov dword [edx + 0x10], ecx
mov ecx, dword [0x5d4e20]
mov dword [edx + 0x14], ecx
nop word [eax + eax]
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x439e90
mov dword [edi], eax
lea eax, [ebp - 0x218]
push eax
call fcn.00448b9a
lea ecx, [ebp - 0x218]
add esp, 4
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x439eb6
mov eax, dword [0x5d4e0c]
mov dword [ecx], eax
mov eax, dword [str.PDFReader]
mov dword [ecx + 4], eax
mov eax, dword [0x5d4e14]
mov dword [ecx + 8], eax
mov eax, dword [0x5d4e18]
mov dword [ecx + 0xc], eax
mov eax, dword [0x5d4e1c]
mov dword [ecx + 0x10], eax
mov eax, dword [0x5d4e20]
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0x218]
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x439f00
mov eax, dword [0x5d8cbc]
mov dword [ecx], eax
mov eax, dword [0x5d8cc0]
mov dword [ecx + 4], eax
mov ax, word [0x5d8cc4]
mov word [ecx + 8], ax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
push str.InstallPath
push str.BKCfg
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
push str.InstallPath
call fcn.0043c489
lea ecx, [ebp - 0x454]
call fcn.004535d9
lea ecx, [ebp - 0x454]
mov dword [ebp - 4], 0
call fcn.0045360d
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x43a035
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0
push eax
push 0xf013f
push 0
push str.SoftWare
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x42c], 0
call edi
test eax, eax
jne 0x43a0d2
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push 0x5d4e0c
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x439ff4
push dword [ebp - 0x424]
call esi
jmp 0x43a0d2
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
push 0
push str.InstallPath
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x42c]
call esi
push dword [ebp - 0x424]
call esi
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0
push eax
push 0xf003f
push 0
push str.SoftWare
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x430], 0
call edi
test eax, eax
jne 0x43a0d2
push eax
lea eax, [ebp - 0x430]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x5d4e0c
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43a0ca
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
push 0
push str.InstallPath
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x430]
call esi
push dword [ebp - 0x428]
call esi
lea ecx, [ebp - 0x454]
call fcn.004535ec
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059cf09
mov esp, ebp
pop ebp
ret