Function at 0x496cb0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56bbf9
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x5bf094]
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 ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
lea edx, [ebp - 0x64]
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xd4], ebx
push edx
mov ecx, edi
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xe4], ebx
call fcn.00404eb0
cmp dword [eax + 0x14], 8
jb 0x496d14
mov eax, dword [eax]
lea ecx, [ebp - 0xe4]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp dword [ebp - 0x50], 8
mov esi, eax
jb 0x496d35
mov edx, dword [ebp - 0x64]
push edx
call fcn.004b8946
add esp, 4
cmp esi, ebx
jne 0x496d6a
push 1
push str.mailru::resource::version_info
push str.Resource.cpp
push 0x5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc8]
call fcn.00403e00
push 0x5a15c8
lea eax, [ebp - 0xc8]
push eax
call fcn.004b9346
push esi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
call fcn.00412010
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.00404eb0
mov edi, 8
cmp dword [eax + 0x14], edi
jb 0x496d96
mov eax, dword [eax]
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0xe4]
push edx
push esi
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
sete byte [ebp - 0xc9]
cmp dword [ebp - 0x18], edi
jb 0x496dc2
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b8946
add esp, 4
cmp byte [ebp - 0xc9], bl
je 0x496dfb
push 1
push str.mailru::resource::version_info
push str.Resource.cpp
push 0x63
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc8]
call fcn.00403e00
push 0x5a15c8
lea eax, [ebp - 0xc8]
push eax
call fcn.004b9346
mov esi, dword [ebp - 0x58]
lea ecx, [ebp - 0xe8]
push ecx
lea edx, [ebp - 0xd4]
push edx
push str.VarFileInfoTranslation
push esi
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0xe8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x496e5e
push 1
push str.mailru::resource::version_info
push str.Resource.cpp
push 0x6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc8]
call fcn.00403e00
push 0x5a15c8
lea eax, [ebp - 0xc8]
push eax
call fcn.004b9346
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
push 0x3e
lea eax, [ebp - 0xa2]
xor edx, edx
push ebx
push eax
mov byte [ebp - 4], 1
mov word [ebp - 0xa4], dx
call fcn.004b9850
mov eax, dword [ebp - 0xd4]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [ebp - 0xa4]
push str.StringFileInfo_04x_04x
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xa4]
add esp, 0x1c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x496eb7
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00403510
push 1
push 0x5876fc
lea ecx, [ebp - 0x48]
call fcn.0040f540
mov edx, dword [ebp - 0xd0]
push 0xffffffffffffffff
push ebx
push edx
lea ecx, [ebp - 0x48]
call fcn.0040f430
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x496f02
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0xd8]
push ecx
lea edx, [ebp - 0xe0]
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x496f4c
push 1
push str.mailru::resource::version_info
push str.Resource.cpp
push 0x7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc8]
call fcn.00403e00
push 0x5a15c8
lea eax, [ebp - 0xc8]
push eax
call fcn.004b9346
mov eax, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ebp - 0xdc]
lea ecx, [eax + ecx*2]
push edx
push ecx
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00465850
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x20], eax
jne 0x496fb2
push 1
push str.mailru::resource::version_info
push str.Resource.cpp
push 0x7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc8]
call fcn.00403e00
push 0x5a15c8
lea eax, [ebp - 0xc8]
push eax
call fcn.004b9346
cmp word [eax - 2], bx
je 0x496fcd
lea ecx, [ebp - 0xd0]
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xd0], ebx
call fcn.00497290
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0xdc]
push edx
mov ecx, esi
call fcn.004045e0
lea ecx, [ebp - 0x20]
call fcn.004026b0
lea ecx, [ebp - 0x48]
call fcn.00491ef0
lea ecx, [ebp - 0x58]
call fcn.004026b0
mov eax, esi
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.004b92b7
mov esp, ebp
pop ebp
ret