Function at 0x104cafa
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1055908]
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 0x104cb50
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x28], 0x8007000e
jmp 0x104cdd4
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 0x104cc7f
xor ecx, ecx
mov word [eax], cx
cmp dword [0x10579cc], esi
jne 0x104cc03
push 0x208
push esi
mov dword [0x10579cc], 1
call ebx
push eax
call edi
mov dword [0x10579c8], eax
cmp eax, esi
je 0x104cc7f
push eax
push 0x104
xor ecx, ecx
push 0x10175cc
mov word [eax], cx
call fcn.0104c0d6
cmp eax, esi
mov dword [ebp - 0x28], eax
jl 0x104cda9
push dword [0x10579c8]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x104cc03
push 0x10175b0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call dword [sym.imp.KERNEL32.dll_EncodePointer]
push 0x1017598
push dword [ebp - 0x28]
mov dword [0x10579c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x10579c0], eax
push 0x400
push dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x104cc34
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x104cc92
jle 0x104cc2c
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x28], eax
jmp 0x104cda9
push 0x1017580
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.0101bc13
cmp eax, esi
mov dword [ebp - 0x28], eax
jl 0x104cda9
push dword [0x10579c4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push esi
push dword [ebp - 0x30]
cmp eax, esi
je 0x104cc8b
push 2
call eax
mov dword [ebp - 0x2c], eax
cmp eax, esi
je 0x104cc16
push eax
push 8
call ebx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, esi
jne 0x104cc99
mov dword [ebp - 0x28], 0x8007000e
jmp 0x104cda9
call sub.VERSION.dll_GetFileVersionInfoSizeW
jmp 0x104cc67
mov eax, 0x80004005
jmp 0x104cc2c
push dword [0x10579c0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push edi
push dword [ebp - 0x2c]
push esi
push dword [ebp - 0x30]
cmp eax, esi
je 0x104cccc
push 2
call eax
test eax, eax
jne 0x104ccd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jg 0x104cc22
jmp 0x104cc2c
call sub.VERSION.dll_GetFileVersionInfoW
jmp 0x104ccb5
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x101754c
push edi
mov dword [ebp - 0x2c], esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x44]
cmp eax, esi
jne 0x104ccfc
mov dword [ebp - 0x28], 0x80004004
jmp 0x104cda9
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x101752c
push ecx
push eax
mov ebx, 0x10174f4
push ebx
mov edi, 0x200
push edi
push dword [ebp - 0x38]
call fcn.0101bca7
add esp, 0x18
cmp eax, esi
mov dword [ebp - 0x28], eax
jl 0x104cda3
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 0x104cd4c
mov dword [ebp - 0x28], 0x80004004
jmp 0x104cda3
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x10174d0
push ecx
push eax
push ebx
push edi
push dword [ebp - 0x38]
call fcn.0101bca7
add esp, 0x18
cmp eax, esi
mov dword [ebp - 0x28], eax
jl 0x104cda3
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 0x104cd43
push dword [ebp - 0x3c]
lea eax, [ebp - 0x24]
push dword [ebp - 0x40]
push eax
push 0x10174a0
call fcn.0104d8ef
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 0x104cdc6
push dword [ebp - 0x30]
push esi
call ebx
push eax
call edi
cmp dword [ebp - 0x34], esi
je 0x104cdd4
push dword [ebp - 0x34]
push esi
call ebx
push eax
call edi
mov eax, dword [0x10579c8]
cmp eax, esi
je 0x104cdea
push eax
push esi
call ebx
push eax
call edi
mov dword [0x10579c8], esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101ca75
leave
ret