Function at 0x4d25a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x721596
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x7db1e8]
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, dword [ebp + 8]
mov dword [ebp - 0x44c], edi
mov dword [ebp - 0x464], edi
call fcn.004d2dc0
mov ecx, eax
test ecx, ecx
je 0x4d29c4
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x43c], esi
push 0x104
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
push dword [0x7df2d8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x420]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x440], eax
test eax, eax
jne 0x4d2672
mov dword [edi], eax
add esi, 0xfffffff0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
mov dword [edi + 0x10], eax
mov byte [edi], al
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d299d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4d299d
push eax
call fcn.006f4bad
add esp, 4
mov dword [ebp - 0x454], eax
push eax
push dword [ebp - 0x440]
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], 0
push eax
lea eax, [ebp - 0x450]
mov dword [ebp - 0x450], 0
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x454]
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [ebp - 0x450]
xor ecx, ecx
test dword [ebp - 0x448], 0xfffffffc
mov dword [ebp - 0x464], edx
mov dword [ebp - 0x440], ecx
jbe 0x4d28ae
nop dword [eax]
movzx eax, word [edx + ecx*4 + 2]
push eax
movzx eax, word [edx + ecx*4]
push eax
lea eax, [ebp - 0x218]
push str.StringFileInfo_04x_04xProductVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x458], 0
lea eax, [ebp - 0x468]
mov dword [ebp - 0x468], 0
push eax
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x454]
call sub.VERSION.dll_VerQueryValueW
call fcn.004d2dc0
mov ecx, eax
test ecx, ecx
je 0x4d29c4
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x45c], eax
push dword [ebp - 0x458]
lea eax, [ebp - 0x45c]
mov byte [ebp - 4], 1
push 0x738298
push eax
call fcn.004d2360
mov edi, dword [ebp - 0x45c]
add esp, 0xc
mov ecx, dword [esi - 0xc]
mov eax, edi
sub eax, esi
mov dword [ebp - 0x444], ecx
sar eax, 1
mov edx, dword [edi - 0xc]
mov dword [ebp - 0x46c], eax
test edx, edx
js 0x4d29ba
push edx
push edi
call fcn.006fbebc
mov edx, eax
mov ecx, closesocket
mov eax, dword [ebp - 0x444]
sub ecx, edx
add esp, 8
mov dword [ebp - 0x460], edx
cmp ecx, eax
jl 0x4d29ba
add edx, eax
js 0x4d29ba
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4d27f9
push edx
lea ecx, [ebp - 0x43c]
call fcn.004d5ad0
mov esi, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0x46c]
mov eax, dword [ebp - 0x444]
lea edx, [esi + ecx*2]
cmp ecx, eax
jbe 0x4d280e
mov edx, edi
mov ecx, dword [ebp - 0x460]
lea eax, [esi + eax*2]
add ecx, ecx
je 0x4d284b
test eax, eax
je 0x4d283b
push ecx
test edx, edx
je 0x4d2830
push edx
push eax
call fcn.006f6ff0
add esp, 0xc
jmp 0x4d284b
push 0
push eax
call fcn.006f7570
add esp, 0xc
call fcn.006fba38
mov dword [eax], 0x16
call fcn.006fb95e
mov eax, dword [ebp - 0x444]
add eax, dword [ebp - 0x460]
cmp eax, dword [esi - 8]
jg 0x4d29ba
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
add edi, 0xfffffff0
mov byte [ebp - 4], cl
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4d2884
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x440]
mov eax, dword [ebp - 0x448]
inc ecx
mov edx, dword [ebp - 0x464]
shr eax, 2
mov dword [ebp - 0x440], ecx
cmp ecx, eax
jb 0x4d26f0
mov edi, dword [ebp - 0x44c]
push 0x7382a0
push 0x7382a4
lea ecx, [ebp - 0x43c]
call fcn.004d8320
mov esi, dword [ebp - 0x43c]
lea eax, [ebp - 0x90]
push 0xfde9
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], eax
call fcn.004d3ce0
mov edx, dword [ebp - 0x94]
mov ecx, edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x428], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x424], 0xf
mov dword [ebp - 0x44c], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d2920
sub ecx, dword [ebp - 0x44c]
push ecx
push edx
lea ecx, [ebp - 0x438]
call fcn.0044f130
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
cmp eax, ecx
je 0x4d2953
push eax
call fcn.006fa47e
add esp, 4
movups xmm0, xmmword [ebp - 0x438]
mov dword [edi], 0
add esi, 0xfffffff0
mov dword [edi + 0x10], 0
or eax, 0xffffffff
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov dword [ebp - 4], 0xffffffff
movq xmm0, qword [ebp - 0x428]
movq qword [edi + 0x10], xmm0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d299d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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.006f4db8
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004cf5d0
push 0x80004005
call fcn.004cf5d0
int3