Function at 0x100ca500
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x20]
mov edx, 2
mov eax, dword [esp + 0x18]
mov dword [0x10154924], ecx
xor ecx, ecx
mov dword [0x10154920], eax
mul edx
push ebx
push ebp
seto cl
push esi
neg ecx
or ecx, eax
push edi
push ecx
call fcn.1006fce6
add esp, 4
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x1c]
push dword [esp + 0x28]
push eax
call fcn.1001fe90
mov esi, dword [0x10154924]
mov ebp, dword [esp + 0x18]
test esi, esi
je 0x100ca574
mov esi, dword [esi]
test esi, esi
je 0x100ca574
lea eax, [esi + 4]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x10154924]
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 0x100ca6d7
lea ecx, [esi + esi]
push ecx
push 1
call fcn.1007da85
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100ca6d7
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 0x1013389c
push ebx
call ebp
test eax, eax
je 0x100ca69a
mov eax, 0x400
cmp esi, 0x400
jb 0x100ca5f5
lea eax, [esi + 1]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006fce6
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 0x100ca689
cmp dword [esp + 0x28], edi
jbe 0x100ca689
push 0
call fcn.1006fcb1
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.1006fce6
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.1006fcb1
add esp, 4
jmp 0x100ca6a0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
call fcn.1006fcb1
add esp, 4
jmp 0x100ca6a0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
call fcn.1007db54
add esp, 4
test edi, edi
jne 0x100ca6e2
cmp dword [0x10154924], edi
je 0x100ca71b
mov eax, dword [0x10154920]
lea eax, [eax*2 + 8]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [0x10154920]
push 0x10132f94
jmp 0x100ca707
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, 0x10132f94
cmp dword [0x10154924], 0
je 0x100ca71b
mov eax, dword [0x10154920]
lea eax, [eax*2 + 8]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [0x10154920]
push edi
mov esi, eax
lea ecx, [esi + 4]
push ecx
call ebp
mov edx, dword [0x10154924]
mov ecx, dword [edx]
mov dword [esi], ecx
mov dword [edx], esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x100ca74e
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x100ca74e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], edi
cmp edi, 1
jne 0x100ca74e
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret