Function at 0x4c1550
Capabilities:
Check if file exists
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55abc3
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x5df7e4]
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 edi, ecx
mov dword [ebp - 0x14c], edi
call fcn.004c0e20
test al, al
jne 0x4c187c
lea eax, [edi + 0x10]
push eax
lea eax, [edi + 0xc]
push eax
push edi
call fcn.004c0740
xor ebx, ebx
mov dword [ebp - 0x12c], 0x11c
push 0x118
lea eax, [ebp - 0x128]
mov dword [ebp - 0x130], ebx
push ebx
push eax
call fcn.0052a280
add esp, 0x18
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x128]
cmp eax, 5
jne 0x4c15f3
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x4c1644
cmp eax, 1
setne bl
inc ebx
jmp 0x4c163e
cmp eax, 6
jne 0x4c1629
mov eax, dword [ebp - 0x124]
sub eax, 0
je 0x4c1622
sub eax, 1
je 0x4c161b
sub eax, 1
je 0x4c1614
mov ebx, 6
jmp 0x4c163e
mov ebx, 5
jmp 0x4c163e
mov ebx, 4
jmp 0x4c163e
mov ebx, 3
jmp 0x4c163e
cmp eax, 0xa
jne 0x4c1633
lea ebx, [eax - 3]
jmp 0x4c163e
cmp eax, 6
mov ecx, 8
cmova ebx, ecx
mov dword [ebp - 0x130], ebx
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x4c187c
nop
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4c165a
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c16c5
call fcn.004bb5b0
mov ecx, eax
test ecx, ecx
je 0x4c1898
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x138], eax
mov dword [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4c1693
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x138]
push str.preload_no_pathinfo:__s
push eax
call fcn.004c0530
push dword [ebp - 0x138]
call fcn.004c1030
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x138]
jmp 0x4c1851
mov eax, esi
cmp ebx, 1
jbe 0x4c16e6
cmp dword [esi + 0x14], 8
jb 0x4c16d4
mov eax, dword [esi]
push 0
push 0
push eax
call fcn.00509700
add esp, 0xc
jmp 0x4c1869
cmp dword [esi + 0x14], 8
jb 0x4c16ee
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x140]
call fcn.004bae60
mov dword [ebp - 4], 4
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x140]
call fcn.004c05f0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x134]
mov ebx, dword [eax - 0xc]
mov dword [ebp - 0x144], ebx
test ebx, ebx
js 0x4c18a2
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, ebx
or ecx, edx
jge 0x4c1751
push ebx
lea ecx, [ebp - 0x134]
call fcn.004bbb80
mov eax, dword [ebp - 0x134]
lea ecx, [eax + ebx*2]
mov edx, eax
mov dword [ebp - 0x13c], ecx
cmp eax, ecx
jae 0x4c17b4
mov ebx, ecx
cmp word [eax], 0x2e
lea ecx, [eax + 2]
mov dword [ebp - 0x148], ecx
je 0x4c17a2
lea ebx, [edx + 2]
xor edi, edi
cmp edx, ebx
je 0x4c179c
nop word [eax + eax]
cmp edi, 1
jae 0x4c1796
mov cx, word [eax]
inc edi
mov word [edx], cx
add eax, 2
add edx, 2
cmp edx, ebx
jne 0x4c1780
mov ecx, dword [ebp - 0x148]
mov ebx, dword [ebp - 0x13c]
mov eax, ecx
cmp ecx, ebx
jb 0x4c1762
mov ebx, dword [ebp - 0x144]
mov edi, dword [ebp - 0x14c]
sub eax, edx
xor ecx, ecx
sar eax, 1
sub ebx, eax
mov word [edx], cx
js 0x4c18a2
mov eax, dword [ebp - 0x134]
cmp ebx, dword [eax - 8]
jg 0x4c18a2
mov dword [eax - 0xc], ebx
mov eax, dword [ebp - 0x134]
push 0x56c2f4
mov word [eax + ebx*2], cx
push dword [ebp - 0x134]
call fcn.0052dcd6
add esp, 8
test eax, eax
jne 0x4c180f
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4c1802
mov eax, dword [esi]
push 0
push 0
push eax
call fcn.00509700
add esp, 0xc
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x134]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c1831
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x140]
mov dword [ebp - 0x144], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x140]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c1869
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x18
cmp esi, dword [edi + 4]
je 0x4c187c
mov ebx, dword [ebp - 0x130]
jmp 0x4c1650
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.005121be
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004b95c0
push 0x80070057
call fcn.004b95c0
int3