Function at 0x100cd8c0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x20]
mov edx, 2
mov eax, dword [esp + 0x18]
mov dword [0x101599dc], ecx
xor ecx, ecx
mov dword [0x101599d8], eax
mul edx
push ebx
push ebp
seto cl
push esi
neg ecx
or ecx, eax
push edi
push ecx
call fcn.100730b1
add esp, 4
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x1c]
push dword [esp + 0x28]
push eax
call fcn.1001fe90
mov esi, dword [0x101599dc]
mov ebp, dword [esp + 0x18]
test esi, esi
je 0x100cd934
mov esi, dword [esi]
test esi, esi
je 0x100cd934
lea eax, [esi + 4]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x101599dc]
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 0x100cda97
lea ecx, [esi + esi]
push ecx
push 1
call fcn.10080e45
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100cda97
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 0x101378b8
push ebx
call ebp
test eax, eax
je 0x100cda5a
mov eax, 0x400
cmp esi, 0x400
jb 0x100cd9b5
lea eax, [esi + 1]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100730b1
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 0x100cda49
cmp dword [esp + 0x28], edi
jbe 0x100cda49
push 0
call fcn.1007307c
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.100730b1
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.1007307c
add esp, 4
jmp 0x100cda60
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
call fcn.1007307c
add esp, 4
jmp 0x100cda60
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
call fcn.10080f14
add esp, 4
test edi, edi
jne 0x100cdaa2
cmp dword [0x101599dc], edi
je 0x100cdadb
mov eax, dword [0x101599d8]
lea eax, [eax*2 + 8]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [0x101599d8]
push 0x10136fb4
jmp 0x100cdac7
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, 0x10136fb4
cmp dword [0x101599dc], 0
je 0x100cdadb
mov eax, dword [0x101599d8]
lea eax, [eax*2 + 8]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [0x101599d8]
push edi
mov esi, eax
lea ecx, [esi + 4]
push ecx
call ebp
mov edx, dword [0x101599dc]
mov ecx, dword [edx]
mov dword [esi], ecx
mov dword [edx], esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x100cdb0e
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x100cdb0e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], edi
cmp edi, 1
jne 0x100cdb0e
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret