Function at 0x453e20
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b1d0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5ef60c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov dword [ebp - 0x24], esp
xor ebx, ebx
mov esi, esp
push eax
mov dword [ebp - 0x30], ebx
call fcn.00401ff0
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [ebp - 0x18]
push eax
call fcn.00419380
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], ebx
jne 0x453eb6
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x453ea2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov dword [ebp - 0x34], esp
mov esi, esp
push eax
call fcn.00401ff0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004185d0
cmp eax, 3
je 0x453ee5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
jmp 0x453e86
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.UPNAVIEXE
call fcn.00401a30
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.DownLoad
call fcn.00401a30
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov esi, esp
push eax
call fcn.00401ff0
add eax, 0x10
lea ecx, [ebp - 0x24]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [ebp - 4], bl
call fcn.0040fc90
add esp, 0x10
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x24]
cmp dword [eax - 0xc], ebx
jne 0x453f70
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x453f61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
jmp 0x453e86
push 0x5b95a8
lea ecx, [ebp - 0x14]
call fcn.00401a30
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0040e510
add esp, 4
lea esi, [ebp - 0x14]
call fcn.00410120
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.00403ed0
mov edx, dword [ebp - 0x14]
push ebx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
push edi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 5
call fcn.0045de9b
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x453fd6
push edi
push ebx
push esi
call fcn.0055b030
add esp, 0xc
jmp 0x453fd8
xor esi, esi
mov eax, dword [ebp - 0x14]
push esi
push edi
push ebx
push eax
mov dword [ebp - 0x20], esi
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, ebx
jne 0x453ff2
push ebx
push ebx
call fcn.0055ad30
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x34]
push edx
push str.VarFileInfoTranslation
push esi
mov dword [ebp - 0x28], ebx
call sub.VERSION.dll_VerQueryValueW
cmp eax, ebx
jne 0x454013
push ebx
push ebx
call fcn.0055ad30
push 0x5b95a8
lea ecx, [ebp - 0x1c]
call fcn.00401a30
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [ebp - 0x1c]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.00402810
mov eax, dword [ebp - 0x1c]
add esp, 0x10
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x2c]
push edx
push eax
push esi
mov dword [ebp - 0x2c], ebx
call sub.VERSION.dll_VerQueryValueW
cmp eax, ebx
jne 0x454061
push ebx
push ebx
call fcn.0055ad30
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00453b70
add esp, 4
cmp eax, ebx
jg 0x454078
mov dword [ebp - 0x30], 1
push esi
call fcn.0045dea6
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.00405900
lea ecx, [ebp - 0x14]
call fcn.00405900
lea ecx, [ebp - 0x24]
call fcn.00405900
lea ecx, [ebp - 0x18]
call fcn.00405900
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret