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

Disassembly:
push ebp
lea ebp, [esp - 0x1058]
mov eax, 0x1058
call fcn.0041d6e0
push 0xffffffffffffffff
push 0x42181b
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x435700]
xor eax, ebp
mov dword [ebp + 0x1054], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov ebx, ecx
mov dword [ebp - 4], edi
lea ecx, [ebp]
mov dword [ebp - 0x18], edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [ebp - 0x18]
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsICQ.exe
mov byte [ebp - 4], 2
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4044af
mov esi, dword [ebp - 0x18]
cmp esi, edi
je 0x4044af
push 0x1000
lea ecx, [ebp + 0x54]
push edi
push ecx
mov dword [ebp - 0x1c], 0x1000
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp - 0x20]
push ecx
push edi
push str.Path
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x4044a0
lea eax, [ebp + 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4043f4
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 + 0x52], 0x5c
lea eax, [ebp + 0x54]
jne 0x404442
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x404411
mov edx, dword [0x429664]
mov ecx, dword [0x429668]
mov dword [eax], edx
mov edx, dword [0x42966c]
mov dword [eax + 4], ecx
mov ecx, dword [0x429670]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
jmp 0x40447f
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x404445
mov edx, dword [str.ICQ.exe]
mov ecx, dword [0x429678]
mov dword [eax], edx
mov edx, dword [0x42967c]
mov dword [eax + 4], ecx
mov ecx, dword [0x429680]
mov dword [eax + 8], edx
mov dx, word [0x429684]
mov dword [eax + 0xc], ecx
mov word [eax + 0x10], dx
lea eax, [ebp + 0x54]
push eax
call sub.mgcommon.dll__IsFileExist_4
cmp eax, edi
je 0x4044a0
lea ecx, [ebp + 0x54]
push ecx
lea ecx, [ebp + 0x38]
call dword [0x4230d4]
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], edi
jne 0x40450f
push str.CSIDL_PROGRAM_FILES
lea eax, [ebp + 0x1c]
push eax
call sub.mgcommon.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____stdcall_GetShellFolderPath_wchar_t_const__
push str.Icq6Icq.exe
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x4044db
lea eax, [ebp + 0x20]
push eax
call sub.mgcommon.dll__IsFileExist_4
cmp eax, edi
je 0x4044f9
lea ecx, [ebp + 0x1c]
push ecx
lea ecx, [ebp + 0x38]
call dword [0x4230c4]
mov dword [ebp - 0x14], 1
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [ebp - 0x14], edi
je 0x4045e3
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x40451b
lea eax, [ebp + 0x3c]
lea edx, [ebp - 0x1c]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
push edi
call fcn.0041d582
add esp, 4
push edi
mov esi, eax
push 0
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
test esi, esi
je 0x4045e3
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x404552
lea eax, [ebp + 0x3c]
mov ecx, dword [ebp - 0x1c]
push esi
push edi
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4045e3
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x14]
push eax
push 0x4290b0
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4045e3
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x12]
mov word [ebx + 0x2e8], cx
movzx edx, word [eax + 0x10]
mov word [ebx + 0x2ea], dx
movzx ecx, word [eax + 0x16]
mov word [ebx + 0x2ec], cx
movzx edx, word [eax + 0x14]
mov word [ebx + 0x2ee], dx
mov esi, 1
mov dword [ebx + 0x2f0], esi
mov edx, dword [ebx + 0x2e8]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebx + 0x2ec]
mov dword [eax + 4], edx
mov edx, esi
lea ecx, [ebx + 0x2f4]
mov dword [eax + 8], edx
call fcn.00405120
mov dword [ebx + 0x310], esi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1054]
xor ecx, ebp
call fcn.0041d649
add ebp, 0x1058
mov esp, ebp
pop ebp
ret