Function at 0x4c6a30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c5100
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x7f3784]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x20]
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x4c6a76
mov eax, dword [esi]
mov byte [eax], 0
cmp dword [ebp + 0x18], 0
jne 0x4c6aa1
push str.No_input_file_path_data
push 0
push 5
push dword [0x7bc530]
push dword [0x7f9eb8]
call fcn.005645a0
add esp, 0x14
jmp 0x4c6d58
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call fcn.004cfbd0
mov edi, eax
mov dword [ebp - 0x20], 0
add esp, 4
mov dword [ebp - 0x1c], 7
test edi, edi
mov edx, 0x718a28
cmovne edx, edi
xor eax, eax
mov ecx, edx
mov word [ebp - 0x30], ax
lea ebx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c6ae0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.0049f4a0
push edi
mov byte [ebp - 4], 1
call fcn.00665390
add esp, 4
cmp dword [ebp - 0x20], 0
jne 0x4c6b1a
push str.Error_converting_ascii_path_to_wide_path
push 0
push 5
jmp 0x4c6d0e
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4c6d22
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0063bac9
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4c6d05
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x30]
push ebx
cmovae ecx, dword [ebp - 0x30]
push edi
push dword [ebp - 0x38]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4c6cd6
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 0x71d1b8
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4c6cfa
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4c6cfa
movzx ecx, word [eax + 0xc]
movzx edi, word [eax + 8]
mov dword [ebp - 0x40], ecx
movzx ecx, word [eax + 0xe]
mov dword [ebp - 0x3c], ecx
movzx ecx, word [eax + 0xa]
mov eax, esi
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 0x10
jb 0x4c6bcc
mov eax, dword [esi]
push ecx
mov byte [eax], 0
xorps xmm0, xmm0
push 0x71d170
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
push 8
push eax
call fcn.004cfa00
lea ecx, [ebp - 0x18]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c6bf1
sub ecx, edx
lea eax, [ebp - 0x18]
push ecx
push eax
mov ecx, esi
call fcn.0049f250
push 1
push 0x71a448
mov ecx, esi
call fcn.0049f250
push edi
push 0x71d170
lea eax, [ebp - 0x18]
push 8
push eax
call fcn.004cfa00
lea ecx, [ebp - 0x18]
add esp, 0x10
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c6c30
sub ecx, edx
lea eax, [ebp - 0x18]
push ecx
push eax
mov ecx, esi
call fcn.0049f250
push 1
push 0x71a448
mov ecx, esi
call fcn.0049f250
mov ecx, dword [ebp - 0x3c]
movzx eax, cx
push eax
push 0x71d170
lea eax, [ebp - 0x18]
push 8
push eax
call fcn.004cfa00
lea ecx, [ebp - 0x18]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c6c73
sub ecx, edx
lea eax, [ebp - 0x18]
push ecx
push eax
mov ecx, esi
call fcn.0049f250
push 1
push 0x71a448
mov ecx, esi
call fcn.0049f250
mov ecx, dword [ebp - 0x40]
movzx eax, cx
push eax
push 0x71d170
lea eax, [ebp - 0x18]
push 8
push eax
call fcn.004cfa00
lea edx, [ebp - 0x18]
add esp, 0x10
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4c6cb6
sub edx, ecx
lea eax, [ebp - 0x18]
push edx
push eax
mov ecx, esi
call fcn.0049f250
push ebx
call fcn.0063bad2
add esp, 4
jmp 0x4c6d22
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_retrieving_version_for_file_:__d
push 0
push 2
push dword [0x7bc530]
push dword [0x7f9eb8]
call fcn.005645a0
add esp, 0x18
push ebx
call fcn.0063bad2
add esp, 4
jmp 0x4c6d22
push str.Error_creating_memory_for_version
push 0
push 2
push dword [0x7bc530]
push dword [0x7f9eb8]
call fcn.005645a0
add esp, 0x14
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x4c6d58
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c6d4e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c6da4
push edx
push ecx
call fcn.0063bb18
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x4c6d88
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c6d7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c6da9
push edx
push ecx
call fcn.0063bb18
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0063bad7
mov esp, ebp
pop ebp
ret
call fcn.0065a824
call fcn.0065a824
int3