Function at 0x470b70
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d56b
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x5fb61c]
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 edi, dword [ebp + 8]
xor esi, esi
push str.0.0.0.0
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x63c], esi
call fcn.00422540
push 0x208
lea ecx, [ebp - 0x21a]
xor eax, eax
push esi
push ecx
mov dword [ebp - 4], esi
mov word [ebp - 0x21c], ax
call fcn.005336c0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x21c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x21c]
push ecx
mov dword [ebp - 0x63c], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, esi
jne 0x470c45
mov eax, dword [ebp - 0x630]
add eax, 0xfffffff0
push eax
call fcn.00421e00
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x630]
add eax, 0xfffffff0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x470e0d
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00534575
mov esi, eax
add esp, 4
test esi, esi
jne 0x470c7b
mov eax, dword [ebp - 0x630]
add eax, 0xfffffff0
push eax
call fcn.00421e00
add esp, 4
jmp 0x470deb
push ebx
push 0
push esi
call fcn.005336c0
add esp, 0xc
push esi
push ebx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x21c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x470cd5
mov eax, dword [ebp - 0x630]
add eax, 0xfffffff0
push eax
call fcn.00421e00
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x630]
add eax, 0xfffffff0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x470e0d
lea ecx, [ebp - 0x634]
push ecx
lea edx, [ebp - 0x640]
push edx
push str.VarFileInfoTranslation
push esi
mov dword [ebp - 0x640], ebx
mov dword [ebp - 0x634], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x470d15
mov eax, dword [ebp - 0x630]
add eax, 0xfffffff0
push eax
call fcn.00421e00
add esp, 4
jmp 0x470deb
push 0x208
lea ecx, [ebp - 0x62c]
push ebx
push ecx
mov dword [ebp - 0x638], ebx
call fcn.005336c0
add esp, 0xc
test dword [ebp - 0x634], 0xfffffffc
jbe 0x470dd3
mov eax, dword [ebp - 0x640]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
push str.StringFileInfo_04x_04xProductVersion
lea ecx, [ebp - 0x62c]
push 0xffffffffffffffff
push ecx
call fcn.00534580
add esp, 0x14
lea edx, [ebp - 0x634]
push edx
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x62c]
push ecx
push esi
call sub.VERSION.dll_VerQueryValueW
push 0x208
lea edx, [ebp - 0x424]
push ebx
push edx
call fcn.005336c0
mov eax, dword [ebp - 0x638]
lea edx, [ebp - 0x424]
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x470da3
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x630]
call fcn.00422390
push 0x2e
push 0x2c
lea ecx, [ebp - 0x630]
call fcn.0046d3f0
push esi
call fcn.00534304
mov eax, dword [ebp - 0x630]
add eax, 0xfffffff0
push eax
call fcn.00421e00
add esp, 8
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x630]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470e19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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.005332ca
mov esp, ebp
pop ebp
ret