Function at 0x100cac10
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x20]
mov edx, 2
mov eax, dword [esp + 0x18]
mov dword [0x101558fc], ecx
xor ecx, ecx
mov dword [0x101558f8], eax
mul edx
push ebx
push ebp
seto cl
push esi
neg ecx
or ecx, eax
push edi
push ecx
call fcn.100703f6
add esp, 4
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x1c]
push dword [esp + 0x28]
push eax
call fcn.1001fe90
mov esi, dword [0x101558fc]
mov ebp, dword [esp + 0x18]
test esi, esi
je 0x100cac84
mov esi, dword [esi]
test esi, esi
je 0x100cac84
lea eax, [esi + 4]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x101558fc]
mov ecx, dword [esi]
push esi
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [esp + 0x30]
mov dword [esp + 0x28], 0
push eax
xor edi, edi
mov dword [esp + 0x34], 0
push ebp
mov dword [esp + 0x18], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x100cade7
lea ecx, [esi + esi]
push ecx
push 1
call fcn.1007e197
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100cade7
push ebx
push esi
push dword [esp + 0x38]
push ebp
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov ebp, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
push 0x101338a4
push ebx
call ebp
test eax, eax
je 0x100cadaa
mov eax, 0x400
cmp esi, 0x400
jb 0x100cad05
lea eax, [esi + 1]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100703f6
mov edx, dword [esp + 0x18]
mov esi, eax
push str.SpecialBuild
movzx ecx, word [edx + 2]
push ecx
movzx ecx, word [edx]
push ecx
push str.StringFileInfo_04x_04x_s
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push eax
push esi
push ebx
call ebp
test eax, eax
je 0x100cad99
cmp dword [esp + 0x28], edi
jbe 0x100cad99
push 0
call fcn.100703c1
mov eax, dword [esp + 0x2c]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100703f6
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynW]
add esp, 8
mov edi, eax
push dword [esp + 0x28]
push dword [esp + 0x14]
push edi
call ebp
push esi
call fcn.100703c1
add esp, 4
jmp 0x100cadb0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
call fcn.100703c1
add esp, 4
jmp 0x100cadb0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
call fcn.1007e266
add esp, 4
test edi, edi
jne 0x100cadf2
cmp dword [0x101558fc], edi
je 0x100cae2b
mov eax, dword [0x101558f8]
lea eax, [eax*2 + 8]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [0x101558f8]
push 0x10132fa4
jmp 0x100cae17
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, 0x10132fa4
cmp dword [0x101558fc], 0
je 0x100cae2b
mov eax, dword [0x101558f8]
lea eax, [eax*2 + 8]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [0x101558f8]
push edi
mov esi, eax
lea ecx, [esi + 4]
push ecx
call ebp
mov edx, dword [0x101558fc]
mov ecx, dword [edx]
mov dword [esi], ecx
mov dword [edx], esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x100cae5e
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x100cae5e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], edi
cmp edi, 1
jne 0x100cae5e
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret