Function at 0x101acd6
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
mov esi, 0x104
xor eax, eax
mov dword [ebp - 8], esi
neg eax
sbb eax, eax
push 1
and eax, esi
add dword [ebp - 8], eax
push dword [ebp - 8]
push edi
push 7
call fcn.01019138
mov ebx, eax
cmp ebx, edi
je 0x101ad5a
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, edi
je 0x101ad6c
mov ecx, dword [ebp - 8]
dec ecx
cmp eax, ecx
jae 0x101ad03
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x101ad73
mov esi, dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
call esi
test eax, eax
jne 0x101ad6c
call esi
test eax, eax
jne 0x101ad6c
push 0x57
jmp 0x101ad66
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
test eax, eax
jne 0x101ad6c
push 8
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x101af39
add eax, 0xa
push eax
mov dword [ebp - 8], eax
call fcn.01018440
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x101ad6c
push eax
push dword [ebp - 8]
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x101ada0
lea eax, [ebp - 0xc]
push eax
call fcn.010187dc
jmp 0x101ad6c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x1001f6c
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x101ad95
push 1
push 0x40
push edi
push 7
call fcn.01019138
xor esi, esi
test dword [ebp - 0x10], 0xfffffffc
mov ebx, eax
mov dword [ebp - 4], edi
jbe 0x101ad95
mov eax, dword [ebp - 0x14]
lea eax, [eax + esi*4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x1001f20
push 0x40
push ebx
call fcn.01018a63
add esp, 0x14
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x101ae17
mov eax, dword [ebp - 0x10]
inc esi
shr eax, 2
mov dword [ebp - 4], edi
cmp esi, eax
jb 0x101add5
cmp dword [ebp - 4], edi
je 0x101ad95
push edi
push dword [ebp - 4]
call fcn.010181d0
cmp eax, 4
ja 0x101ae4f
lea eax, [ebp - 0xc]
push eax
call fcn.010187dc
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
test eax, eax
jne 0x101ad6c
push 0x42b
jmp 0x101ad66
push edi
push 1
mov ebx, 0x1001f14
push ebx
push dword [ebp - 4]
call fcn.01018719
mov esi, dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_lstrlenW]
cmp eax, 0xffffffff
je 0x101ae89
push dword [ebp - 4]
call esi
push ebx
mov dword [ebp - 0x18], eax
call esi
mov ecx, dword [ebp - 0x18]
mov dx, word [0x1001ec0]
sub ecx, eax
mov eax, dword [ebp - 4]
mov word [eax + ecx*2], dx
cmp dword [ebp + 8], edi
je 0x101aed9
push dword [ebp - 4]
call esi
push dword [ebp + 8]
mov ebx, eax
call esi
push 1
lea eax, [ebx + eax + 0xb]
push eax
push edi
push 7
mov dword [ebp - 8], eax
call fcn.01019138
mov esi, eax
cmp esi, edi
jne 0x101aec0
lea eax, [ebp - 0xc]
push eax
call fcn.010187dc
jmp 0x101ad5a
push dword [ebp + 8]
push dword [ebp - 4]
push 0x1001f08
push dword [ebp - 8]
push esi
call fcn.01018a63
add esp, 0x14
jmp 0x101aef9
cmp dword [ebp - 4], edi
jne 0x101aee7
push 7
call fcn.01017e9d
jmp 0x101aef3
push edi
push edi
push dword [ebp - 4]
push 7
call fcn.01019138
mov esi, eax
cmp esi, edi
je 0x101aeb2
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_CharUpperW]
push 1
push 0x50
push edi
push 0xb
call fcn.01019138
mov esi, eax
cmp esi, edi
je 0x101aeb2
push dword [ebp - 4]
push 0x15ed
call fcn.01019fbc
push eax
push 0x50
push esi
call fcn.01018a63
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
call fcn.010187dc
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4