Function at 0x484390
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9460
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
push ebx
push esi
push edi
xor eax, eax
lea ecx, [ebp - 0x28]
xor edi, edi
mov word [ebp - 0x28], ax
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
push 0x4c965c
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
call fcn.00402730
mov dword [ebp - 4], edi
lea eax, [ebp - 0x28]
mov esi, dword [ebp + 0x10]
cmp esi, eax
je 0x484421
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4843f7
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00402920
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x48440f
mov eax, dword [esi]
jmp 0x484411
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.0044db70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x48443d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402920
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x10], eax
jb 0x484461
mov eax, dword [ebx]
jmp 0x484463
mov eax, ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp + 8], eax
test eax, eax
je 0x4845cb
push eax
call fcn.00475bfe
add esp, 4
mov dword [ebp + 0x10], eax
mov dword [ebp - 4], 1
test eax, eax
jne 0x484499
mov edi, 0x8007000e
jmp 0x4845a4
cmp dword [ebx + 0x14], 8
jb 0x4844a1
mov ebx, dword [ebx]
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4844d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp + 0x10]
test edi, edi
jle 0x4845a4
movzx edi, di
or edi, 0x80070000
jmp 0x4845a4
push 0x208
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.0048b3f0
lea ecx, [ebp - 0x234]
mov dword [ebp + 8], 0
mov ebx, 0x4ce720
mov eax, ecx
add esp, 0xc
mov edx, 0x104
sub ebx, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x484522
movzx eax, word [ecx + ebx]
test ax, ax
je 0x484522
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x484504
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp + 0x10]
call sub.VERSION.dll_VerQueryValueW
push 0x208
lea eax, [ebp - 0x43c]
push 0
push eax
call fcn.0048b3f0
mov edx, dword [ebp + 0xc]
add esp, 0xc
cmp dword [edx + 0x14], 8
jb 0x484567
mov edx, dword [edx]
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push edx
lea eax, [ebp - 0x43c]
push 0x104
push eax
call fcn.0045ac50
add esp, 0x1c
lea eax, [ebp - 0x43c]
mov ecx, esi
push eax
call fcn.0041bc30
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4845b8
push eax
call fcn.00475c07
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4845dd
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret