Function at 0x104cadd
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 0x104cb33
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x28], 0x8007000e
jmp 0x104cdb7
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 0x104cc62
xor ecx, ecx
mov word [eax], cx
cmp dword [0x10579cc], esi
jne 0x104cbe6
push 0x208
push esi
mov dword [0x10579cc], 1
call ebx
push eax
call edi
mov dword [0x10579c8], eax
cmp eax, esi
je 0x104cc62
push eax
push 0x104
xor ecx, ecx
push 0x10175cc
mov word [eax], cx
call fcn.0104c0b9
cmp eax, esi
mov dword [ebp - 0x28], eax
jl 0x104cd8c
push dword [0x10579c8]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x104cbe6
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 0x104cc17
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x104cc75
jle 0x104cc0f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x28], eax
jmp 0x104cd8c
push 0x1017580
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.0101bc13
cmp eax, esi
mov dword [ebp - 0x28], eax
jl 0x104cd8c
push dword [0x10579c4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push esi
push dword [ebp - 0x30]
cmp eax, esi
je 0x104cc6e
push 2
call eax
mov dword [ebp - 0x2c], eax
cmp eax, esi
je 0x104cbf9
push eax
push 8
call ebx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, esi
jne 0x104cc7c
mov dword [ebp - 0x28], 0x8007000e
jmp 0x104cd8c
call sub.VERSION.dll_GetFileVersionInfoSizeW
jmp 0x104cc4a
mov eax, 0x80004005
jmp 0x104cc0f
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 0x104ccaf
push 2
call eax
test eax, eax
jne 0x104ccb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jg 0x104cc05
jmp 0x104cc0f
call sub.VERSION.dll_GetFileVersionInfoW
jmp 0x104cc98
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 0x104ccdf
mov dword [ebp - 0x28], 0x80004004
jmp 0x104cd8c
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 0x104cd86
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 0x104cd2f
mov dword [ebp - 0x28], 0x80004004
jmp 0x104cd86
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 0x104cd86
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 0x104cd26
push dword [ebp - 0x3c]
lea eax, [ebp - 0x24]
push dword [ebp - 0x40]
push eax
push 0x10174a0
call fcn.0104d8d2
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 0x104cda9
push dword [ebp - 0x30]
push esi
call ebx
push eax
call edi
cmp dword [ebp - 0x34], esi
je 0x104cdb7
push dword [ebp - 0x34]
push esi
call ebx
push eax
call edi
mov eax, dword [0x10579c8]
cmp eax, esi
je 0x104cdcd
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