Function at 0x10064fc
Capabilities:
Get file version info

Disassembly:
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.KERNEL32.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.01003d6b
mov ebx, eax
cmp ebx, edi
je 0x100672e
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, edi
je 0x1006740
mov ecx, dword [ebp - 8]
dec ecx
cmp eax, ecx
jae 0x1006527
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x1006591
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x1006740
call esi
test eax, eax
jne 0x1006740
push 0x57
jmp 0x100673a
add eax, 0xa
push eax
mov dword [ebp - 8], eax
call fcn.010032f6
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x1006740
push eax
push dword [ebp - 8]
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x10065be
xor esi, esi
jmp 0x100675d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x10012e8
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10065b7
push 1
push 0x40
push edi
push 7
call fcn.01003d6b
xor esi, esi
test dword [ebp - 0x10], 0xfffffffc
mov ebx, eax
mov dword [ebp - 4], edi
jbe 0x10065b7
mov eax, dword [ebp - 0x14]
lea eax, [eax + esi*4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x1001430
push 0x40
push ebx
call fcn.010036c1
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 0x1006635
mov eax, dword [ebp - 0x10]
inc esi
shr eax, 2
cmp esi, eax
mov dword [ebp - 4], edi
jb 0x10065f3
cmp dword [ebp - 4], edi
je 0x10065b7
push edi
push dword [ebp - 4]
call fcn.01002fa4
cmp eax, 4
ja 0x100666d
lea eax, [ebp - 0xc]
push eax
call fcn.010036e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1006740
push 0x42b
jmp 0x100673a
push edi
push 1
mov ebx, 0x1001420
push ebx
push dword [ebp - 4]
call fcn.010035a9
cmp eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x10066a7
push dword [ebp - 4]
call esi
push ebx
mov dword [ebp - 0x18], eax
call esi
mov ecx, dword [ebp - 0x18]
mov dx, word [0x1001354]
sub ecx, eax
mov eax, dword [ebp - 4]
mov word [eax + ecx*2], dx
cmp dword [ebp + 8], edi
je 0x10066e9
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.01003d6b
mov esi, eax
cmp esi, edi
je 0x1006725
push dword [ebp + 8]
push dword [ebp - 4]
push 0x1001414
push dword [ebp - 8]
push esi
call fcn.010036c1
add esp, 0x14
jmp 0x1006709
cmp dword [ebp - 4], edi
jne 0x10066f7
push 7
call fcn.0100340e
jmp 0x1006703
push edi
push edi
push dword [ebp - 4]
push 7
call fcn.01003d6b
mov esi, eax
cmp esi, edi
je 0x1006725
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_CharUpperW]
push 1
push 0x50
push edi
push 0xb
call fcn.01003d6b
mov esi, eax
cmp esi, edi
jne 0x1006744
lea eax, [ebp - 0xc]
push eax
call fcn.010036e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1006740
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1006768
push dword [ebp - 4]
push 0x15ed
call fcn.01004b9e
push eax
push 0x50
push esi
call fcn.010036c1
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
call fcn.010036e8
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4