Function at 0x439710
Capabilities:
Get file version info
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e1a28
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x663000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], ecx
mov byte [ebp - 0x231], 0
call fcn.0040cfd9
mov ecx, eax
test ecx, ecx
je 0x439da0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x240], eax
push 0x62de00
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], 0
call fcn.0040d850
test al, al
jne 0x439793
push 0x62de00
lea ecx, [ebp - 0x240]
call fcn.0040d9f0
xor ebx, ebx
mov dword [ebp - 4], 1
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x250], ebx
xor edi, edi
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x244], edi
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 3
push eax
push 0x20019
push edi
push str.SOFTWAREClasses.pdf
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x22c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x439c82
mov edi, dword [ebp - 0x22c]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x22c]
push eax
push ebx
lea eax, [ebp - 0x230]
mov dword [ebp - 0x24c], edi
push eax
push ebx
push 0x62de00
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x439c82
mov eax, dword [ebp - 0x230]
cmp eax, 1
je 0x439841
cmp eax, 2
jne 0x439c82
mov esi, dword [ebp - 0x22c]
lea ecx, [ebp - 0x258]
shr esi, 1
lea eax, [esi + 1]
push eax
call fcn.0042c2a0
push dword [ebp - 0x254]
mov ebx, dword [ebp - 0x258]
lea ecx, [ebp - 0x230]
push ebx
mov dword [ebp - 0x230], 0
call fcn.0043a480
add esp, 8
lea eax, [esi + esi]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x22c]
push eax
push ebx
lea eax, [ebp - 0x230]
push eax
push 0
push 0x62de00
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x439c82
mov eax, dword [ebp - 0x230]
cmp eax, 1
je 0x4398bf
cmp eax, 2
jne 0x439c82
mov ecx, dword [ebp - 0x22c]
test ebx, ebx
je 0x4398ec
test ecx, ecx
je 0x4398e7
test cl, 1
jne 0x439c82
mov eax, ecx
shr eax, 1
cmp word [ebx + eax*2 - 2], 0
je 0x4398ec
jmp 0x439c82
xor eax, eax
mov word [ebx], ax
shr ecx, 1
mov dword [ebp - 0x230], ecx
test edi, edi
je 0x439907
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], 0
call fcn.0040cfd9
mov ecx, eax
test ecx, ecx
je 0x439daa
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x25c], eax
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x228]
push dword [ebp - 0x230]
push ebx
call fcn.00407c16
cmp dword [ebp - 0x214], 8
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push eax
lea eax, [ebp - 0x25c]
push str.SOFTWAREClasses_s_shellOpencommand
push eax
call fcn.0043a460
mov esi, dword [ebp - 0x25c]
lea eax, [ebp - 0x22c]
add esp, 0xc
mov dword [ebp - 0x22c], 0
push eax
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x439bff
test edi, edi
je 0x4399d1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x248], 0
test eax, eax
jne 0x439bff
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x22c]
push eax
push 0
lea eax, [ebp - 0x230]
push eax
push 0
push 0x62de00
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x439bff
mov eax, dword [ebp - 0x230]
cmp eax, 1
je 0x439a2f
cmp eax, 2
jne 0x439bff
mov eax, dword [ebp - 0x22c]
lea ecx, [ebp - 0x258]
shr eax, 1
push eax
mov dword [ebp - 0x22c], eax
call fcn.0042c2a0
push dword [ebp - 0x254]
mov ebx, dword [ebp - 0x258]
lea ecx, [ebp - 0x230]
push ebx
mov dword [ebp - 0x230], 0
call fcn.0043a480
add esp, 8
lea eax, [ebp - 0x22c]
lea ecx, [ebp - 0x24c]
push eax
push ebx
push 0x62de00
call fcn.0042ccd0
test eax, eax
jne 0x439bff
push ebx
lea ecx, [ebp - 0x238]
call fcn.0040d710
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 6
push eax
push 0x633d78
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 1
push eax
lea ecx, [ebp - 0x238]
call fcn.004188f0
push eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 7
call fcn.004106c0
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 6
call fcn.0040d6f0
mov eax, dword [ebp - 0x238]
cmp dword [eax - 0xc], 0
je 0x439bf4
lea ecx, [ebp - 0x264]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x26c], eax
test eax, eax
je 0x439bf4
push eax
call fcn.005bc026
mov edi, eax
add esp, 4
mov dword [ebp - 0x22c], edi
test edi, edi
je 0x439bf4
push edi
push dword [ebp - 0x26c]
push dword [ebp - 0x264]
push dword [ebp - 0x238]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x439b4d
push edi
jmp 0x439bec
lea eax, [ebp - 0x230]
mov dword [ebp - 0x23c], 0
push eax
lea eax, [ebp - 0x23c]
push eax
push 0x633a5c
push edi
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
call edi
mov ecx, dword [ebp - 0x23c]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x210]
push str.StringFileInfo_04x_04xProductName
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x22c]
call edi
test eax, eax
je 0x439be6
cmp dword [ebp - 0x230], 0
jbe 0x439be6
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x240]
call fcn.0040d9f0
push dword [ebp - 0x22c]
call fcn.005b98d1
mov byte [ebp - 0x231], 1
jmp 0x439bf1
push dword [ebp - 0x22c]
call fcn.005b98d1
add esp, 4
lea ecx, [ebp - 0x238]
call fcn.0040d6f0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x214]
cmp ecx, 8
jb 0x439c43
mov edx, dword [ebp - 0x228]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x439c39
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439db4
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
add esi, 0xfffffff0
mov dword [ebp - 0x214], 7
or eax, 0xffffffff
mov byte [ebp - 4], 3
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x439c7c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x24c]
mov al, byte [ebp - 0x231]
mov byte [ebp - 0x268], al
call fcn.0040cfd9
mov ecx, eax
test ecx, ecx
je 0x439db9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
cmp byte [ebp - 0x231], 0
mov ecx, 0x62ee88
mov eax, 0x6373d4
mov byte [ebp - 4], 8
cmove eax, ecx
lea ecx, [ebp - 0x264]
push eax
call fcn.0040d9f0
mov esi, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x260]
push esi
push 0
push 0x1174f
mov ecx, dword [ecx]
call fcn.0041a6c0
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x439d06
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x260]
mov esi, dword [ebp - 0x240]
push esi
push 0
mov ecx, dword [eax]
push 0x11750
call fcn.0041a6c0
test edi, edi
je 0x439d2c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
test ebx, ebx
je 0x439d65
mov eax, dword [ebp - 0x250]
sub eax, ebx
sar eax, 1
lea ecx, [eax + eax]
mov eax, ebx
cmp ecx, 0x1000
jb 0x439d5b
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439dc3
push ecx
push ebx
call fcn.005af9e7
add esp, 8
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x439d84
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005af765
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040238e
push 0x80004005
call fcn.0040238e
call fcn.005b681f
push 0x80004005
call fcn.0040238e
call fcn.005b681f
int3