Function at 0x40ad90
Capabilities:
Get file version info

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447716
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x290
mov eax, dword [0x463074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x264], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x268], eax
mov eax, dword [ebx + 0x14]
push 0x208
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x220]
push 0
push eax
mov dword [ebp - 0x260], esi
mov byte [ebp - 0x251], 0
call fcn.004158c0
xor eax, eax
mov dword [ebp - 0x228], 0
add esp, 0xc
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
push 0x104
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.RepairTool.exe
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ae90
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.004012b0
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push 0
cmovae eax, dword [ebp - 0x238]
push eax
mov dword [ebp - 0x258], 0x34
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x40af77
push edi
call fcn.00413432
add esp, 4
mov esi, eax
push edi
push 0
push esi
call fcn.004158c0
add esp, 0xc
lea ecx, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
cmovae ecx, dword [ebp - 0x238]
push esi
push edi
push 0
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40af66
lea eax, [ebp - 0x258]
mov ecx, esi
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0040ad10
test eax, eax
je 0x40af66
mov eax, dword [ebp - 0x25c]
mov byte [ebp - 0x251], 1
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2a0], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x290], xmm0
movups xmm0, xmmword [eax + 0x20]
mov eax, dword [eax + 0x30]
movups xmmword [ebp - 0x280], xmm0
push 1
push esi
call fcn.004133f4
mov esi, dword [ebp - 0x260]
add esp, 8
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x40afb3
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40afa9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b016
push edx
push ecx
call fcn.004133f4
add esp, 8
cmp byte [ebp - 0x251], 0
je 0x40aff4
mov ecx, dword [ebp - 0x290]
mov eax, ecx
mov edx, dword [ebp - 0x268]
shr eax, 0x10
mov word [esi], ax
mov eax, dword [ebp - 0x264]
mov word [eax], cx
mov ecx, dword [ebp - 0x28c]
mov eax, ecx
shr eax, 0x10
mov word [edx], ax
mov eax, dword [ebp - 0x26c]
mov word [eax], cx
mov al, 1
jmp 0x40aff6
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004133e3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.004186ec
int3