Function at 0x4679e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4994e8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4cc99c]
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 esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x40], ebx
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 4], ebx
jb 0x467a69
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x467a71
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, 0x3fffffff
jg 0x467a71
add eax, eax
call fcn.00497dd0
mov edi, esp
cmp edi, ebx
je 0x467a71
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
push eax
push edi
push 0xffffffffffffffff
push ecx
push ebx
xor edx, edx
push 3
mov word [edi], dx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
jmp 0x467a73
lea eax, [ebp + 0xc]
mov dword [ebp - 0x34], eax
jmp 0x467a26
xor eax, eax
push eax
lea ecx, [ebp - 0x30]
call fcn.004022c0
mov edx, dword [ebp - 0x30]
push ebx
push edx
mov byte [ebp - 4], 1
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x38], eax
cmp eax, ebx
ja 0x467ac6
push 7
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x4a63a4
mov ecx, esi
mov byte [esi], bl
call fcn.00403870
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x467bf9
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov edx, dword [ebp - 0x38]
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x30]
push edi
push edx
push ebx
push eax
mov dword [ebp - 0x34], edi
call sub.VERSION.dll_GetFileVersionInfoW
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x3c]
push edx
push str.StringFileInfo040904B0ProductVersion
push edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x467bbf
push eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x467b1e
xor edi, edi
jmp 0x467b39
lea edi, [eax + eax]
mov eax, edi
call fcn.00497dd0
mov ecx, dword [ebp - 0x38]
mov eax, esp
push 3
push edi
push ecx
push eax
call fcn.00403590
mov edi, eax
mov ecx, edi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea edx, [ecx + 1]
jmp 0x467b50
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x467b50
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.00403870
mov edx, dword [ebp - 0x34]
push edx
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCR100.dll_free]
mov edi, 0xf
add esp, 4
cmp dword [ebp - 0x1c], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edi
mov ecx, esi
mov byte [esi], bl
ja 0x467bb4
push 7
push 0x4a63a4
call fcn.00403870
cmp dword [ebp - 0x18], 0x10
jb 0x467ba6
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
jmp 0x467aab
lea edx, [ebp - 0x2c]
push edx
call fcn.00414120
jmp 0x467b94
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push 7
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x4a63a4
mov ecx, esi
mov byte [esi], bl
call fcn.00403870
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x467c05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp + 0x20], 0x10
jb 0x467c17
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
lea esp, [ebp - 0x50]
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.00497792
mov esp, ebp
pop ebp
ret