Function at 0x47c6a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a33fb
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x639354]
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.00429250
mov ecx, eax
test ecx, ecx
je 0x47c943
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 0x47c718
movzx eax, ax
push eax
call fcn.00429d90
jmp 0x47c724
push 7
push str.0.0.0.0
call fcn.0042a060
push 0x20a
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.00560a80
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 0x47c7e8
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055c532
mov edi, eax
add esp, 4
test edi, edi
je 0x47c7e8
push ebx
push 0
push edi
call fcn.00560a80
add esp, 0xc
lea eax, [ebp - 0x424]
push edi
push ebx
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x47c7e8
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 0x47c81d
mov edi, dword [ebp - 0x630]
add edi, 0xfffffff0
push edi
call fcn.00429b80
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 0x47c925
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x47c925
push 0x208
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x63c], 0
push 0
push eax
call fcn.00560a80
add esp, 0xc
test dword [ebp - 0x634], 0xfffffffc
jbe 0x47c8f3
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.00560a80
push dword [ebp - 0x63c]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0056f8ec
lea ecx, [ebp - 0x218]
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47c8c2
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x630]
call fcn.0042a060
push 0x2e
push 0x2c
lea ecx, [ebp - 0x630]
call fcn.0047fd00
push edi
call fcn.0055c53b
mov edi, dword [ebp - 0x630]
add edi, 0xfffffff0
push edi
call fcn.00429b80
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 0x47c925
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.0055c3a9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b60
int3