Function at 0x401504
Capabilities:
Check os version

Disassembly:
push 0x1bc
push 0x404628
call fcn.00402fb8
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0xc8], 0x94
push 0x90
push edi
lea eax, [ebp - 0xc4]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4017b4
cmp dword [ebp - 0xc4], 5
jne 0x401576
cmp dword [ebp - 0xc0], edi
jbe 0x401576
mov eax, 0xc039
mov word [0x42a51c], ax
jmp 0x4015ae
cmp dword [ebp - 0xc4], 6
jne 0x4015a1
cmp dword [ebp - 0xc0], 2
jae 0x4015a1
xor eax, eax
cmp dword [ebp - 0xc0], 1
sete al
lea eax, [eax + eax + 0xc03a]
mov word [0x42a51c], ax
cmp word [0x42a51c], di
je 0x4017b4
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x20], esi
cmp esi, edi
je 0x4015d5
push 0x98
push 9
mov eax, esi
mov edx, 0x405da4
call fcn.0040295d
push 0x1c
pop eax
call sub.ntdll.dll__alloca_probe
mov dword [ebp - 0x18], esp
mov eax, esp
cmp eax, edi
je 0x4015f7
push 0x96
push 0x18
mov edx, 0x405db0
call fcn.0040295d
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call esi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov ebx, eax
test ebx, ebx
je 0x4017b4
push 0x18
pop eax
call sub.ntdll.dll__alloca_probe
mov dword [ebp - 0x18], esp
mov eax, esp
test eax, eax
je 0x401636
push 0x89
push 0x17
mov edx, 0x405dc8
call fcn.0040295d
push eax
push dword [ebp - 0x20]
call esi
push eax
call edi
mov dword [0x42a524], eax
test eax, eax
je 0x4017b4
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0xb
call ebx
test eax, eax
je 0x4017b4
push dword [ebp - 0x24]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x1c], eax
xor esi, esi
cmp eax, esi
je 0x4017b4
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
push 0xb
call ebx
cmp eax, esi
jne 0x4017b4
mov byte [ebp - 0x1cc], 0
push 0x103
push esi
lea eax, [ebp - 0x1cb]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov ebx, dword [sym.imp.ntdll.dll_strstr]
mov dword [ebp - 0x30], esi
mov eax, dword [ebp - 0x1c]
cmp esi, dword [eax]
jae 0x40170b
mov ecx, esi
imul ecx, ecx, 0x11c
lea eax, [ecx + eax + 0x20]
mov dword [ebp - 0x20], eax
push 0x4045a0
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x401708
push 0x4045a4
push dword [ebp - 0x20]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x401708
mov edx, eax
lea ecx, [ebp - 0x1cc]
mov al, byte [edx]
mov byte [ecx], al
inc edx
inc ecx
test al, al
jne 0x4016ef
imul esi, esi, 0x11c
mov eax, dword [ebp - 0x1c]
mov esi, dword [esi + eax + 0xc]
jmp 0x40170e
inc esi
jmp 0x4016b0
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x4017b4
test esi, esi
je 0x4017b4
push 0x1c
pop eax
call sub.ntdll.dll__alloca_probe
mov dword [ebp - 0x18], esp
mov eax, esp
test eax, eax
je 0x401752
push 0x8f
push 0x1a
mov edx, 0x405de0
call fcn.0040295d
push eax
push ebx
call edi
mov dword [0x42a514], eax
test eax, eax
je 0x4017b4
mov ecx, esi
sub ecx, ebx
add eax, ecx
mov dword [0x42a514], eax
push 0x18
pop eax
call sub.ntdll.dll__alloca_probe
mov dword [ebp - 0x18], esp
mov eax, esp
test eax, eax
je 0x40178c
push 0x8c
push 0x17
mov edx, 0x405dfc
call fcn.0040295d
push eax
push ebx
call edi
jmp 0x42dc20
or dword [ebp - 4], 0xffffffff
call fcn.004017cc
mov eax, dword [ebp - 0x2c]
lea esp, [ebp - 0x1d8]
call fcn.00402ff1
ret