Function at 0x100c807
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 0x100c85d
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x28], 0x8007000e
jmp 0x100cae1
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 0x100c98c
xor ecx, ecx
mov word [eax], cx
cmp dword [0x1014000], esi
jne 0x100c910
push 0x208
push esi
mov dword [0x1014000], 1
call ebx
push eax
call edi
mov dword [0x1013ffc], eax
cmp eax, esi
je 0x100c98c
push eax
push 0x104
xor ecx, ecx
push 0x1001dac
mov word [eax], cx
call fcn.0100bde3
cmp eax, esi
mov dword [ebp - 0x28], eax
jl 0x100cab6
push dword [0x1013ffc]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x100c910
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 0x100c941
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x100c99f
jle 0x100c939
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x28], eax
jmp 0x100cab6
push 0x1001d60
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.01007d23
cmp eax, esi
mov dword [ebp - 0x28], eax
jl 0x100cab6
push dword [0x1013ff8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push esi
push dword [ebp - 0x30]
cmp eax, esi
je 0x100c998
push 2
call eax
mov dword [ebp - 0x2c], eax
cmp eax, esi
je 0x100c923
push eax
push 8
call ebx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, esi
jne 0x100c9a6
mov dword [ebp - 0x28], 0x8007000e
jmp 0x100cab6
call sub.VERSION.dll_GetFileVersionInfoSizeW
jmp 0x100c974
mov eax, 0x80004005
jmp 0x100c939
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 0x100c9d9
push 2
call eax
test eax, eax
jne 0x100c9e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jg 0x100c92f
jmp 0x100c939
call sub.VERSION.dll_GetFileVersionInfoW
jmp 0x100c9c2
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 0x100ca09
mov dword [ebp - 0x28], 0x80004004
jmp 0x100cab6
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 0x100cab0
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 0x100ca59
mov dword [ebp - 0x28], 0x80004004
jmp 0x100cab0
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 0x100cab0
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 0x100ca50
push dword [ebp - 0x3c]
lea eax, [ebp - 0x24]
push dword [ebp - 0x40]
push eax
push 0x1001c80
call fcn.0100d866
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 0x100cad3
push dword [ebp - 0x30]
push esi
call ebx
push eax
call edi
cmp dword [ebp - 0x34], esi
je 0x100cae1
push dword [ebp - 0x34]
push esi
call ebx
push eax
call edi
mov eax, dword [0x1013ffc]
cmp eax, esi
je 0x100caf7
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.0100b081
leave
ret