Function at 0x418b70
Capabilities:
Check if file exists
Check os version
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a05ed
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x4c6184]
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 - 0x134], edi
test edi, edi
je 0x418f79
cmp word [edi], 0
je 0x418f79
lea eax, [ebp - 0x130]
push eax
call fcn.0041bb70
push 0x11c
lea ecx, [ebp - 0x12c]
push 0
push ecx
mov dword [ebp - 4], 0
call fcn.0048a470
add esp, 0xc
lea edx, [ebp - 0x12c]
push edx
mov dword [ebp - 0x12c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ebx, 2
cmp dword [ebp - 0x11c], ebx
jne 0x418e02
mov eax, dword [ebp - 0x128]
cmp eax, 5
jb 0x418e02
je 0x418e02
cmp eax, 6
jne 0x418c35
cmp dword [ebp - 0x124], 1
jne 0x418e02
lea edi, [ebx + 5]
jmp 0x418c3a
mov edi, 8
xor esi, esi
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x13c], esi
lea eax, [ebp - 0x144]
push eax
mov edx, 0x20019
mov eax, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, Ordinal_4
call fcn.00419630
test eax, eax
jne 0x418de2
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x148], esi
lea ecx, [ebp - 0x138]
push ecx
mov byte [ebp - 4], bl
call fcn.0041bb70
lea edx, [ebp - 0x144]
push edx
lea ebx, [ebp - 0x138]
mov eax, str.Progid
mov byte [ebp - 4], 3
call fcn.0041d3e0
mov eax, dword [ebp - 0x138]
cmp dword [eax - 0xc], esi
jl 0x418d13
push 0x4a9acc
push eax
call fcn.00488848
add esp, 8
cmp eax, esi
je 0x418d13
sub eax, dword [ebp - 0x138]
sar eax, 1
js 0x418d13
lea eax, [ebp - 0x150]
push eax
mov edx, 0x20019
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00419630
test eax, eax
jne 0x418d9b
lea ecx, [ebp - 0x150]
push ecx
lea ebx, [ebp - 0x130]
mov eax, 0x4a970c
call fcn.0041d3e0
jmp 0x418d9b
mov ecx, str.Firefox
lea esi, [ebp - 0x138]
call fcn.00419170
test eax, eax
js 0x418d4f
lea edx, [ebp - 0x150]
push edx
mov edx, 0x20019
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_firefox.exe
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00419630
test eax, eax
jne 0x418d99
lea eax, [ebp - 0x150]
push eax
jmp 0x418d89
mov ecx, str.Chrome
lea esi, [ebp - 0x138]
call fcn.00419170
test eax, eax
js 0x418d99
lea ecx, [ebp - 0x150]
push ecx
mov edx, 0x20019
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathschrome.exe
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00419630
test eax, eax
jne 0x418d99
lea edx, [ebp - 0x150]
push edx
lea ebx, [ebp - 0x130]
mov eax, 0x4a970c
call fcn.0041d3e0
xor esi, esi
mov eax, dword [ebp - 0x130]
cmp dword [eax - 0xc], esi
jne 0x418dab
mov edi, 2
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x138]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418dd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x150]
cmp eax, esi
je 0x418de2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x144]
cmp eax, esi
je 0x418df3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 7
mov edi, dword [ebp - 0x134]
jge 0x418f01
xor esi, esi
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x13c], esi
lea ecx, [ebp - 0x144]
push ecx
mov edx, 0x20019
mov eax, str.HTTP_shellopencommand
mov ecx, Ordinal_4
mov byte [ebp - 4], 4
call fcn.00419630
test eax, eax
jne 0x418ef0
lea edx, [ebp - 0x144]
push edx
lea ebx, [ebp - 0x130]
mov eax, 0x4a970c
call fcn.0041d3e0
mov ecx, dword [ebp - 0x130]
mov eax, dword [ecx - 0xc]
cmp eax, 5
jl 0x418ef0
cmp eax, esi
jge 0x418e74
push 0x80070057
call fcn.004170a0
cmp word [ecx], 0x22
jne 0x418eb4
lea eax, [ebp - 0x130]
push eax
mov eax, 1
xor ecx, ecx
call fcn.00419010
mov ecx, 0x22
lea esi, [ebp - 0x130]
call fcn.00419150
test eax, eax
je 0x418ef0
lea ecx, [ebp - 0x134]
mov edx, esi
call fcn.004191a0
mov byte [ebp - 4], 5
jmp 0x418ed9
mov ecx, 0x20
lea esi, [ebp - 0x130]
call fcn.00419150
test eax, eax
je 0x418ef0
lea ecx, [ebp - 0x134]
mov edx, esi
call fcn.004191a0
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x130]
call fcn.0041bc10
lea ecx, [ebp - 0x134]
call fcn.00418360
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x418f01
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x130]
cmp dword [eax - 0xc], 0
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
je 0x418f39
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418f39
mov ecx, dword [ebp - 0x130]
push 1
push 0
push edi
push ecx
push str.open
push 0
call esi
cmp eax, 0x20
jg 0x418f49
push 1
push 0
push 0
push edi
push 0
push 0
call esi
cmp eax, 0x20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x130]
setg bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418f75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
jmp 0x418f7b
xor al, al
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.00486a8b
mov esp, ebp
pop ebp
ret