Function at 0x47c650
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59eefb
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x63434c]
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.004291f0
mov ecx, eax
test ecx, ecx
je 0x47c8f3
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 0x47c6c8
movzx eax, ax
push eax
call fcn.00429d30
jmp 0x47c6d4
push 7
push str.0.0.0.0
call fcn.0042a000
push 0x20a
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.0055c530
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 0x47c798
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00558012
mov edi, eax
add esp, 4
test edi, edi
je 0x47c798
push ebx
push 0
push edi
call fcn.0055c530
add esp, 0xc
lea eax, [ebp - 0x424]
push edi
push ebx
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x47c798
lea eax, [ebp - 0x634]
mov dword [ebp - 0x638], 0
push eax
lea eax, [ebp - 0x638]
mov dword [ebp - 0x634], 0
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x47c7cd
mov edi, dword [ebp - 0x630]
add edi, 0xfffffff0
push edi
call fcn.00429b20
add eax, 0x10
add esp, 4
mov dword [esi], eax
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x47c8d5
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x47c8d5
push 0x208
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x63c], 0
push 0
push eax
call fcn.0055c530
add esp, 0xc
test dword [ebp - 0x634], 0xfffffffc
jbe 0x47c8a3
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.0055c530
push dword [ebp - 0x63c]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0056b39c
lea ecx, [ebp - 0x218]
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47c872
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x630]
call fcn.0042a000
push 0x2e
push 0x2c
lea ecx, [ebp - 0x630]
call fcn.0047f3a0
push edi
call fcn.0055801b
mov edi, dword [ebp - 0x630]
add edi, 0xfffffff0
push edi
call fcn.00429b20
add eax, 0x10
add esp, 8
mov dword [esi], eax
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x47c8d5
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.00557e89
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b00
int3