Function at 0x477010
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a686
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x62819c]
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.00428a90
mov ecx, eax
test ecx, ecx
je 0x4772c8
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 0x477088
movzx eax, ax
push eax
call fcn.004295b0
jmp 0x477094
push 7
push str.0.0.0.0
call fcn.00429870
push 0x20a
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.0054b380
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 0x477158
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00546052
mov edi, eax
add esp, 4
test edi, edi
je 0x477158
push ebx
push 0
push edi
call fcn.0054b380
add esp, 0xc
lea eax, [ebp - 0x424]
push edi
push ebx
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x477158
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 0x477194
mov edi, dword [ebp - 0x630]
add edi, 0xfffffff0
push edi
call fcn.004293f0
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 0x4772aa
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4772aa
push 0x208
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x63c], 0
push 0
push eax
call fcn.0054b380
add esp, 0xc
test dword [ebp - 0x634], 0xfffffffc
jbe 0x477271
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.0054b380
push dword [ebp - 0x63c]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00559d1c
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 0x477240
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x630]
call fcn.00429870
push 0x2e
push 0x2c
lea ecx, [ebp - 0x630]
call fcn.004799f0
push edi
call fcn.0054605b
mov edi, dword [ebp - 0x630]
add edi, 0xfffffff0
push edi
call fcn.004293f0
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 0x4772aa
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.00545ec7
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004293d0
int3