Function at 0x458630
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d56d
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x492110]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x12c], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x140], esi
mov dword [ebp - 4], 0
call fcn.00455dd0
mov ecx, eax
test ecx, ecx
je 0x458a57
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
call fcn.00455dd0
mov ecx, eax
test ecx, ecx
je 0x458a57
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi + 4], eax
lea eax, [esi + 8]
mov dword [ebp - 0x128], eax
mov byte [ebp - 4], 4
call fcn.00455dd0
mov ecx, eax
test ecx, ecx
je 0x458a57
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi + 8], eax
push 0x1c
lea eax, [ebp - 0x160]
mov byte [ebp - 4], 5
push eax
test edi, edi
mov dword [ebp - 0x148], 0
mov eax, esi
xorps xmm0, xmm0
cmovne eax, edi
movq qword [ebp - 0x150], xmm0
push eax
movups xmmword [ebp - 0x160], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
je 0x45872d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x458a38
push dword [ebp - 0x15c]
lea eax, [ebp - 0x114]
push eax
call fcn.0045a740
add esp, 8
mov eax, dword [ebp - 0x114]
or edi, 0xffffffff
mov byte [ebp - 4], 6
cmp dword [eax - 0xc], 0
je 0x4587d2
push 0x5c
push eax
call fcn.00430ebe
mov edx, eax
add esp, 8
mov eax, dword [ebp - 0x114]
test edx, edx
jne 0x458770
or edx, edi
jmp 0x458776
sub edx, eax
sar edx, 1
je 0x4587c4
mov eax, dword [eax - 0xc]
lea ecx, [ebp - 0x114]
inc edx
sub eax, edx
push eax
push edx
lea eax, [ebp - 0x11c]
push eax
call fcn.00459a70
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 7
push eax
lea ecx, [esi + 4]
call fcn.00458c60
mov edx, dword [ebp - 0x11c]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4587c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x114]
mov ecx, esi
push eax
call fcn.00458c60
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0
push eax
push dword [esi]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x11c], eax
test eax, eax
jne 0x45881e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x114]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x458a38
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x458a38
push eax
call fcn.00425070
mov esi, eax
add esp, 4
test esi, esi
je 0x458840
push dword [ebp - 0x11c]
push 0
push esi
call fcn.0042f1f0
add esp, 0xc
jmp 0x458842
xor esi, esi
mov dword [ebp - 0x144], esi
mov eax, dword [ebp - 0x118]
push esi
push dword [ebp - 0x11c]
mov byte [ebp - 4], 8
push 0
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x45889d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x458879
push esi
call fcn.00425080
add esp, 4
mov edx, dword [ebp - 0x114]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x458a32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x458a32
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0
push eax
lea eax, [ebp - 0x134]
push eax
push 0x48592c
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x458a04
cmp dword [ebp - 0x120], 4
jb 0x458a04
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.0042f1f0
mov ecx, dword [ebp - 0x134]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x110]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.00458410
add esp, 0x1c
mov dword [ebp - 0x124], 0
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x458957
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x458947
push esi
call fcn.00425080
add esp, 4
lea ecx, [ebp - 0x114]
call fcn.004534d0
jmp 0x458a32
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x45893a
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x138]
push ecx
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
push str._u__u__u__u
push eax
call fcn.0045a960
add esp, 0x18
cmp eax, 4
jne 0x4589c0
push dword [ebp - 0x11c]
push dword [ebp - 0x138]
push dword [ebp - 0x13c]
push dword [ebp - 0x12c]
push str._u._u._u._u
push dword [ebp - 0x128]
call fcn.004592a0
add esp, 0x18
jmp 0x45893a
mov edx, dword [ebp - 0x124]
test edx, edx
jne 0x4589de
xor ecx, ecx
push ecx
mov ecx, dword [ebp - 0x128]
push edx
call fcn.00457d10
jmp 0x45893a
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4589e3
sub ecx, edi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x128]
push edx
call fcn.00457d10
jmp 0x45893a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x458a17
push esi
call fcn.00425080
add esp, 4
mov eax, dword [ebp - 0x114]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x458a32
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov esi, dword [ebp - 0x118]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042db8f
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00406a91
int3