Function at 0x472860
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ae86
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x61ce74]
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]
mov dword [ebp - 0x640], esi
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x472b18
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x630], eax
mov eax, str.0.0.0.0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x630]
test eax, 0xffff0000
jne 0x4728d8
movzx eax, ax
push eax
call fcn.00426130
jmp 0x4728e4
push 7
push str.0.0.0.0
call fcn.004263f0
push 0x20a
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.00540d70
add esp, 0xc
lea eax, [ebp - 0x424]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x640]
mov dword [ebp - 0x640], 0
push eax
lea eax, [ebp - 0x424]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4729a8
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053d0bd
mov edi, eax
add esp, 4
test edi, edi
je 0x4729a8
push ebx
push 0
push edi
call fcn.00540d70
add esp, 0xc
lea eax, [ebp - 0x424]
push edi
push ebx
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4729a8
lea eax, [ebp - 0x634]
mov dword [ebp - 0x638], 0
push eax
lea eax, [ebp - 0x638]
mov dword [ebp - 0x634], 0
push eax
push 0x5bb608
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4729e4
mov edi, dword [ebp - 0x630]
add edi, 0xfffffff0
push edi
call fcn.00425f70
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [esi], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x472afa
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x472afa
push 0x208
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x63c], 0
push 0
push eax
call fcn.00540d70
add esp, 0xc
test dword [ebp - 0x634], 0xfffffffc
jbe 0x472ac1
mov ecx, dword [ebp - 0x638]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x62c]
push str.StringFileInfo_04x_04xProductVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x62c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00540d70
push dword [ebp - 0x63c]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00554202
lea ecx, [ebp - 0x218]
add esp, 0x18
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472a90
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x630]
call fcn.004263f0
push 0x2e
push 0x2c
lea ecx, [ebp - 0x630]
call fcn.00474d90
push edi
call fcn.0053d0c6
mov edi, dword [ebp - 0x630]
add edi, 0xfffffff0
push edi
call fcn.00425f70
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [esi], eax
add esp, 8
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x472afa
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
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.0053d079
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00425f50
int3