Function at 0x100c7f8
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1013b58]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
xor esi, esi
push edi
push 0x400
push esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
mov dword [ebp - 0x38], eax
cmp eax, esi
jne 0x100c84e
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x28], 0x8007000e
jmp 0x100cad2
push 0x800
xor ecx, ecx
push esi
mov word [eax], cx
call ebx
push eax
call edi
mov dword [ebp - 0x30], eax
cmp eax, esi
je 0x100c97d
xor ecx, ecx
mov word [eax], cx
cmp dword [0x1014000], esi
jne 0x100c901
push 0x208
push esi
mov dword [0x1014000], 1
call ebx
push eax
call edi
mov dword [0x1013ffc], eax
cmp eax, esi
je 0x100c97d
push eax
push 0x104
xor ecx, ecx
push 0x1001dac
mov word [eax], cx
call fcn.0100bdd3
cmp eax, esi
mov dword [ebp - 0x28], eax
jl 0x100caa7
push dword [0x1013ffc]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x100c901
push 0x1001d90
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call dword [sym.imp.KERNEL32.dll_EncodePointer]
push 0x1001d78
push dword [ebp - 0x28]
mov dword [0x1013ff8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x1013ff4], eax
push 0x400
push dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x100c932
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x100c990
jle 0x100c92a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x28], eax
jmp 0x100caa7
push 0x1001d60
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.01007d23
cmp eax, esi
mov dword [ebp - 0x28], eax
jl 0x100caa7
push dword [0x1013ff8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push esi
push dword [ebp - 0x30]
cmp eax, esi
je 0x100c989
push 2
call eax
mov dword [ebp - 0x2c], eax
cmp eax, esi
je 0x100c914
push eax
push 8
call ebx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, esi
jne 0x100c997
mov dword [ebp - 0x28], 0x8007000e
jmp 0x100caa7
call sub.VERSION.dll_GetFileVersionInfoSizeW
jmp 0x100c965
mov eax, 0x80004005
jmp 0x100c92a
push dword [0x1013ff4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push edi
push dword [ebp - 0x2c]
push esi
push dword [ebp - 0x30]
cmp eax, esi
je 0x100c9ca
push 2
call eax
test eax, eax
jne 0x100c9d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jg 0x100c920
jmp 0x100c92a
call sub.VERSION.dll_GetFileVersionInfoW
jmp 0x100c9b3
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x1001d2c
push edi
mov dword [ebp - 0x2c], esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x44]
cmp eax, esi
jne 0x100c9fa
mov dword [ebp - 0x28], 0x80004004
jmp 0x100caa7
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x1001d0c
push ecx
push eax
mov ebx, 0x1001cd4
push ebx
mov edi, 0x200
push edi
push dword [ebp - 0x38]
call fcn.01007db7
add esp, 0x18
cmp eax, esi
mov dword [ebp - 0x28], eax
jl 0x100caa1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x38]
mov dword [ebp - 0x2c], esi
push dword [ebp - 0x34]
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 0x3c], esi
jne 0x100ca4a
mov dword [ebp - 0x28], 0x80004004
jmp 0x100caa1
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x1001cb0
push ecx
push eax
push ebx
push edi
push dword [ebp - 0x38]
call fcn.01007db7
add esp, 0x18
cmp eax, esi
mov dword [ebp - 0x28], eax
jl 0x100caa1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x38]
mov dword [ebp - 0x2c], esi
push dword [ebp - 0x34]
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 0x40], esi
je 0x100ca41
push dword [ebp - 0x3c]
lea eax, [ebp - 0x24]
push dword [ebp - 0x40]
push eax
push 0x1001c80
call fcn.0100d857
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push dword [ebp - 0x38]
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
cmp dword [ebp - 0x30], esi
je 0x100cac4
push dword [ebp - 0x30]
push esi
call ebx
push eax
call edi
cmp dword [ebp - 0x34], esi
je 0x100cad2
push dword [ebp - 0x34]
push esi
call ebx
push eax
call edi
mov eax, dword [0x1013ffc]
cmp eax, esi
je 0x100cae8
push eax
push esi
call ebx
push eax
call edi
mov dword [0x1013ffc], esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b071
leave
ret