Function at 0x102cd62
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
call fcn.0102ad60
test al, al
je 0x102cdb3
mov eax, dword [0x10bfc88]
test eax, eax
jne 0x102cda9
push 0x1002218
call fcn.0102b8aa
test eax, eax
je 0x102cda2
push 0x1002204
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x10bfc88], eax
jne 0x102cda9
xor eax, eax
jmp 0x102cf8e
push dword [ebp + 8]
call eax
jmp 0x102cf8e
mov ebx, dword [ebp + 8]
push 7
pop ecx
mov esi, ebx
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
test byte [ebp - 0x1f], 0x40
je 0x102ce56
test byte [ebp - 0x20], 0x10
je 0x102ce56
xor eax, eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov esi, 0x10021f8
push esi
mov dword [ebp - 8], 1
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x102ce52
push edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x102ce52
push eax
push edi
xor edi, edi
push edi
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x102ce44
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push 0x10021f4
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x102ce44
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x102ce44
cmp word [eax + 0x12], 5
jb 0x102ce44
mov dword [ebp - 8], edi
push dword [ebp - 4]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
cmp dword [ebp - 8], edi
pop ecx
je 0x102ce56
and byte [ebp - 0x20], 0xef
mov eax, dword [ebx + 8]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jne 0x102ce69
and dword [ebp - 0x28], 0
jmp 0x102ceb4
push eax
call fcn.01029380
cmp eax, 0xffffffff
push dword [ebx + 8]
jne 0x102ce7c
call edi
inc eax
jmp 0x102ce81
call fcn.01029380
lea esi, [eax + eax]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.0106afe0
mov dword [ebp + 8], esp
push dword [ebx + 8]
call fcn.01029380
push eax
push esi
push dword [ebx + 8]
push dword [ebp + 8]
call fcn.010292f1
neg eax
sbb eax, eax
and eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
or eax, 1
test ax, ax
mov eax, dword [ebx + 0xc]
je 0x102cf03
test eax, eax
jne 0x102cecc
and dword [ebp - 0x24], 0
jmp 0x102cf37
push eax
call fcn.01029380
cmp eax, 0xffffffff
push dword [ebx + 0xc]
jne 0x102cedf
call edi
inc eax
jmp 0x102cee4
call fcn.01029380
lea esi, [eax + eax]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.0106afe0
mov dword [ebp + 8], esp
push dword [ebx + 0xc]
call fcn.01029380
push eax
jmp 0x102cf21
test eax, eax
je 0x102cec6
push eax
call edi
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.0106afe0
mov dword [ebp + 8], esp
push 0xffffffffffffffff
push esi
push dword [ebx + 0xc]
push dword [ebp + 8]
call fcn.010292f1
neg eax
sbb eax, eax
and eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
or ax, 0x100
je 0x102cf78
mov eax, dword [ebx + 0x1a]
test eax, eax
jne 0x102cf4c
and dword [ebp - 0x16], eax
jmp 0x102cf78
push eax
call edi
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.0106afe0
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebx + 0x1a]
push edi
call fcn.010292f1
neg eax
sbb eax, eax
and eax, edi
mov dword [ebp - 0x16], eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, dword [ebp - 0x1e]
mov dword [ebx + 0x12], ecx
mov ecx, dword [ebp - 0x1a]
mov dword [ebx + 0x16], ecx
lea esp, [ebp - 0x3c]
pop edi
pop esi
pop ebx
leave
ret 4