Function at 0x4e4950
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596dcd
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x12c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x128], eax
mov dword [ebp - 4], 0
call fcn.004224a0
mov dword [ebp - 0x114], eax
test eax, eax
je 0x4e4d92
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5a0478]
mov ecx, dword [ebp - 0x114]
call esi
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
call fcn.004224a0
mov dword [ebp - 0x114], eax
test eax, eax
je 0x4e4d92
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5a0478]
mov ecx, dword [ebp - 0x114]
call esi
add eax, 0x10
mov dword [edi + 4], eax
mov byte [ebp - 4], 4
call fcn.004224a0
mov dword [ebp - 0x114], eax
test eax, eax
je 0x4e4d92
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5a0478]
mov ecx, dword [ebp - 0x114]
call esi
add eax, 0x10
mov dword [edi + 8], eax
mov ecx, dword [ebp - 0x128]
lea eax, [ebp - 0x15c]
push 0x1c
push eax
test ecx, ecx
mov byte [ebp - 4], 5
mov eax, edi
mov dword [ebp - 0x144], 0
xorps xmm0, xmm0
cmovne eax, ecx
push eax
movups xmmword [ebp - 0x15c], xmm0
movq qword [ebp - 0x14c], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
je 0x4e4a86
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4e4d73
push dword [ebp - 0x158]
lea eax, [ebp - 0x118]
push eax
call fcn.004e6800
add esp, 8
mov eax, dword [ebp - 0x118]
or esi, 0xffffffff
mov byte [ebp - 4], 6
cmp dword [eax - 0xc], 0
je 0x4e4b44
push 0x5c
push eax
call fcn.00556905
mov edx, eax
add esp, 8
mov eax, dword [ebp - 0x118]
test edx, edx
jne 0x4e4acd
or edx, esi
jmp 0x4e4ad3
sub edx, eax
sar edx, 1
je 0x4e4b36
mov eax, dword [eax - 0xc]
lea ecx, [ebp - 0x118]
inc edx
sub eax, edx
push eax
push edx
lea eax, [ebp - 0x114]
push eax
call fcn.004e5e50
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 7
push eax
lea ecx, [edi + 4]
call fcn.004df440
mov ecx, dword [ebp - 0x114]
mov eax, esi
mov byte [ebp - 4], 6
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4e4b36
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5a0478]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x11c]
or esi, 0xffffffff
lea eax, [ebp - 0x118]
mov ecx, edi
push eax
call fcn.004df440
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0
push eax
push dword [edi]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x114], eax
test eax, eax
jne 0x4e4ba2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x4e4d73
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5a0478]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x11c]
jmp 0x4e4d73
push eax
call fcn.005541f3
mov esi, eax
add esp, 4
test esi, esi
je 0x4e4bc4
push dword [ebp - 0x114]
push 0
push esi
call fcn.005561e0
add esp, 0xc
jmp 0x4e4bc6
xor esi, esi
mov dword [ebp - 0x140], esi
push esi
push dword [ebp - 0x114]
mov byte [ebp - 4], 8
push 0
push dword [edi]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4e4c10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4e4bf7
push esi
call fcn.00469760
add esp, 4
mov ecx, dword [ebp - 0x118]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jmp 0x4e4b7d
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0
push eax
lea eax, [ebp - 0x134]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4e4d55
cmp dword [ebp - 0x120], 4
jb 0x4e4d55
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.005561e0
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.004e46d0
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
je 0x4e4d55
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x4e4d5b
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x138]
push ecx
push str._u__u__u__u
push eax
call fcn.004d8b90
add esp, 0x18
cmp eax, 4
jne 0x4e4d13
push dword [ebp - 0x128]
lea eax, [edi + 8]
push dword [ebp - 0x114]
push dword [ebp - 0x11c]
push dword [ebp - 0x138]
push str._u._u._u._u
push eax
call fcn.004df960
add esp, 0x18
jmp 0x4e4d5b
mov edx, dword [ebp - 0x124]
test edx, edx
jne 0x4e4d2b
xor ecx, ecx
push ecx
push edx
lea ecx, [edi + 8]
call fcn.004de900
jmp 0x4e4d5b
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x12c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e4d36
sub ecx, dword [ebp - 0x12c]
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 8]
call fcn.004de900
jmp 0x4e4d5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4e4d68
push esi
call fcn.00469760
add esp, 4
lea ecx, [ebp - 0x118]
call fcn.004d0d90
mov eax, edi
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.00553d2a
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0042d7b0
int3