Function at 0x401911
Capabilities:
Check os version

Disassembly:
push 0x1bc
push 0x406748
call fcn.00404b60
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 0x401bc1
cmp dword [ebp - 0xc4], 5
jne 0x401983
cmp dword [ebp - 0xc0], edi
jbe 0x401983
mov eax, 0xc039
mov word [0x430014], ax
jmp 0x4019bb
cmp dword [ebp - 0xc4], 6
jne 0x4019ae
cmp dword [ebp - 0xc0], 2
jae 0x4019ae
xor eax, eax
cmp dword [ebp - 0xc0], 1
sete al
lea eax, [eax + eax + 0xc03a]
mov word [0x430014], ax
cmp word [0x430014], di
je 0x401bc1
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 0x4019e2
push 0x88
push 9
mov eax, esi
mov edx, 0x408ff0
call fcn.0040425a
push 0x1c
pop eax
call sub.ntdll.dll__alloca_probe
mov dword [ebp - 0x18], esp
mov eax, esp
cmp eax, edi
je 0x401a04
push 0x95
push 0x18
mov edx, 0x408ffc
call fcn.0040425a
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 0x401bc1
push 0x18
pop eax
call sub.ntdll.dll__alloca_probe
mov dword [ebp - 0x18], esp
mov eax, esp
test eax, eax
je 0x401a43
push 0x8a
push 0x17
mov edx, 0x409014
call fcn.0040425a
push eax
push dword [ebp - 0x20]
call esi
push eax
call edi
mov dword [0x43001c], eax
test eax, eax
je 0x401bc1
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0xb
call ebx
test eax, eax
je 0x401bc1
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 0x401bc1
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
push 0xb
call ebx
cmp eax, esi
jne 0x401bc1
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 0x401b18
mov ecx, esi
imul ecx, ecx, 0x11c
lea eax, [ecx + eax + 0x20]
mov dword [ebp - 0x20], eax
push 0x4057a0
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x401b15
push 0x4057a4
push dword [ebp - 0x20]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x401b15
mov edx, eax
lea ecx, [ebp - 0x1cc]
mov al, byte [edx]
mov byte [ecx], al
inc edx
inc ecx
test al, al
jne 0x401afc
imul esi, esi, 0x11c
mov eax, dword [ebp - 0x1c]
mov esi, dword [esi + eax + 0xc]
jmp 0x401b1b
inc esi
jmp 0x401abd
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 0x401bc1
test esi, esi
je 0x401bc1
push 0x1c
pop eax
call sub.ntdll.dll__alloca_probe
mov dword [ebp - 0x18], esp
mov eax, esp
test eax, eax
je 0x401b5f
push 0x8d
push 0x1a
mov edx, 0x40902c
call fcn.0040425a
push eax
push ebx
call edi
mov dword [0x43000c], eax
test eax, eax
je 0x401bc1
mov ecx, esi
sub ecx, ebx
add eax, ecx
mov dword [0x43000c], eax
push 0x18
pop eax
call sub.ntdll.dll__alloca_probe
mov dword [ebp - 0x18], esp
mov eax, esp
test eax, eax
je 0x401b99
push 0x86
push 0x17
mov edx, 0x409048
call fcn.0040425a
push eax
push ebx
call edi
mov dword [0x430018], eax
test eax, eax
je 0x401bc1
sub esi, ebx
add eax, esi
mov dword [0x430018], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x430008], eax
mov dword [ebp - 0x2c], 1
or dword [ebp - 4], 0xffffffff
call fcn.00401bd9
mov eax, dword [ebp - 0x2c]
lea esp, [ebp - 0x1d8]
call fcn.00404b99
ret