Function at 0x100177b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [0x1010e2e8], 0
je 0x100177c6
xor eax, eax
jmp 0x100179fb
push 0x2000
call fcn.1001c60e
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
push 0x7ff
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x34], 0
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x100179e7
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
push ecx
call fcn.1001c60e
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
push str.VarFileInfoTranslation
mov edx, dword [ebp - 0xc]
push edx
call sub.VERSION.dll_VerQueryValueW
push 0x2000
call fcn.1001c60e
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x10017885
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x28]
shr edx, 2
cmp dword [ebp - 8], edx
jge 0x100179c3
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*4 + 2]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*4]
push edx
push str.StringFileInfo_.4x_.4xFileDescription
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + edx*4 + 2]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + edx*4]
push ecx
push str.StringFileInfo_.4x_.4xProductName
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0x18], str.TVP_KIRIKIRI__2
cmp dword [ebp - 0x20], 0
je 0x10017975
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.10043a30
add esp, 8
mov eax, dword [ebp - 0x18]
push eax
call fcn.10043a90
add esp, 4
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx + eax*2], cx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.10043920
add esp, 8
test eax, eax
jne 0x10017975
mov dword [0x1010e2e8], 1
cmp dword [ebp - 0x24], 0
je 0x100179be
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.10043a30
add esp, 8
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.10043a90
add esp, 4
xor edx, edx
mov ecx, dword [ebp - 4]
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.10043920
add esp, 8
test eax, eax
jne 0x100179be
mov dword [0x1010e2e8], 1
jmp 0x1001787c
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
call fcn.1001c684
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.1001c684
add esp, 4
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.1001c684
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret