Function at 0x4a8840
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512ab3
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x55e2f4]
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 edi, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x17c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x180], ebx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0x18c], eax
jb 0x4a88a7
mov eax, dword [edi]
jmp 0x4a88a9
mov eax, edi
lea ecx, [ebp - 0x190]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x180], eax
test eax, eax
je 0x4a88f3
push eax
call fcn.00417810
add esp, 4
mov esi, eax
cmp dword [edi + 0x14], 8
jb 0x4a88d3
mov edi, dword [edi]
push esi
push dword [ebp - 0x180]
push dword [ebp - 0x190]
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4a88fa
push esi
call fcn.004ec0b7
add esp, 4
xor eax, eax
jmp 0x4a8dc6
mov ecx, dword [ebp - 0x18c]
push 0
push 0x516968
call fcn.004051a0
mov ecx, eax
mov eax, dword [ebp - 0x184]
cmp eax, ecx
je 0x4a892a
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00405080
mov eax, dword [ebp - 0x184]
mov edi, dword [ebp - 0x188]
cmp edi, eax
je 0x4a8940
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00405080
mov eax, dword [ebp - 0x17c]
cmp eax, edi
je 0x4a8956
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00405080
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x194]
push eax
push 0x518b40
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4a8b3e
cmp dword [ebp - 0x178], ebx
jbe 0x4a8b3e
mov dword [ebp - 0xc0], 0x519628
mov dword [ebp - 0xb0], 0x519630
push 0
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x58], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov ebx, 0x40
mov dword [ebp - 0x5c], 0x50
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x180], ebx
movlpd qword [ebp - 0xb8], xmm0
call fcn.0041df60
lea eax, [ebp - 0xb0]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0xb0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xb0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xb4], eax
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0xc4], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 4], 5
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
lea eax, [ebp - 0xa8]
mov ecx, eax
mov dword [ebp - 0x188], eax
call fcn.0041a6a0
mov dword [ebp - 0xa8], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 4], 7
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push 0x2e
push eax
movzx eax, word [ecx + 8]
push 0x2e
push eax
movzx eax, word [ecx + 0xa]
lea ecx, [ebp - 0xb0]
push 0x2e
push eax
call fcn.004a6860
push eax
call fcn.004a5990
add esp, 8
mov ecx, eax
call fcn.004a6860
push eax
call fcn.004a5990
add esp, 8
mov ecx, eax
call fcn.004a6860
push eax
call fcn.004a5990
add esp, 8
mov ecx, eax
call fcn.004a6860
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0041e900
mov ecx, dword [ebp - 0x17c]
push eax
call fcn.004256c0
lea ecx, [ebp - 0x128]
call fcn.00495b40
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 8
call fcn.0041a950
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xa
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.004e13b9
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x198]
push eax
push 0x52aed4
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4a8db8
cmp dword [ebp - 0x178], 4
jb 0x4a8db8
mov ecx, dword [ebp - 0x198]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_
lea eax, [ebp - 0x110]
push 0x80
push eax
call fcn.00405500
add esp, 0x14
lea eax, [ebp - 0x110]
lea ecx, [ebp - 0x140]
push eax
call fcn.00403e70
push 0x52af3c
push eax
lea eax, [ebp - 0x128]
mov dword [ebp - 4], 0xb
or ebx, 1
push eax
mov dword [ebp - 0x180], ebx
call fcn.00403cd0
add esp, 0xc
or ebx, 2
cmp dword [eax + 0x14], 8
jb 0x4a8bd6
mov eax, dword [eax]
lea ecx, [ebp - 0x178]
push ecx
lea ecx, [ebp - 0x17c]
push ecx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4a8bff
cmp dword [ebp - 0x178], 0
mov byte [ebp - 0x171], 1
ja 0x4a8c06
mov byte [ebp - 0x171], 0
test bl, 2
je 0x4a8c19
lea ecx, [ebp - 0x128]
and ebx, 0xfffffffd
call fcn.00495b40
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4a8c33
lea ecx, [ebp - 0x140]
and ebx, 0xfffffffe
call fcn.00495b40
cmp byte [ebp - 0x171], 0
je 0x4a8c49
push dword [ebp - 0x17c]
mov ecx, edi
call fcn.0043f1f0
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call fcn.00403e70
push 0x52af5c
push eax
lea eax, [ebp - 0x140]
mov dword [ebp - 4], 0xc
or ebx, 4
push eax
mov dword [ebp - 0x180], ebx
call fcn.00403cd0
add esp, 0xc
or ebx, 8
cmp dword [eax + 0x14], 8
jb 0x4a8c8b
mov eax, dword [eax]
lea ecx, [ebp - 0x178]
push ecx
lea ecx, [ebp - 0x17c]
push ecx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4a8cb4
cmp dword [ebp - 0x178], 0
mov byte [ebp - 0x171], 1
ja 0x4a8cbb
mov byte [ebp - 0x171], 0
test bl, 8
je 0x4a8cce
lea ecx, [ebp - 0x140]
and ebx, 0xfffffff7
call fcn.00495b40
mov dword [ebp - 4], 0xffffffff
test bl, 4
je 0x4a8ce8
lea ecx, [ebp - 0x128]
and ebx, 0xfffffffb
call fcn.00495b40
cmp byte [ebp - 0x171], 0
je 0x4a8d02
push dword [ebp - 0x17c]
mov ecx, dword [ebp - 0x184]
call fcn.0043f1f0
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x170]
call fcn.00403e70
push 0x5196a4
push eax
lea eax, [ebp - 0x158]
mov dword [ebp - 4], 0xd
or ebx, 0x10
push eax
mov dword [ebp - 0x180], ebx
call fcn.00403cd0
add esp, 0xc
or ebx, 0x20
cmp dword [eax + 0x14], 8
jb 0x4a8d44
mov eax, dword [eax]
lea ecx, [ebp - 0x178]
push ecx
lea ecx, [ebp - 0x17c]
push ecx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4a8d6d
cmp dword [ebp - 0x178], 0
mov byte [ebp - 0x171], 1
ja 0x4a8d74
mov byte [ebp - 0x171], 0
test bl, 0x20
je 0x4a8d87
lea ecx, [ebp - 0x158]
and ebx, 0xffffffdf
call fcn.00495b40
mov dword [ebp - 4], 0xffffffff
test bl, 0x10
je 0x4a8d9e
lea ecx, [ebp - 0x170]
call fcn.00495b40
cmp byte [ebp - 0x171], 0
je 0x4a8db8
push dword [ebp - 0x17c]
mov ecx, dword [ebp - 0x18c]
call fcn.0043f1f0
push esi
call fcn.004ec0b7
add esp, 4
mov eax, 1
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.004e1f40
mov esp, ebp
pop ebp
ret