Function at 0x5015da0
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x9cc
lea ebp, [esp - 4]
mov eax, dword [0x509ddfc]
xor eax, ebp
mov dword [ebp + 0x9cc], eax
push 0x544
mov eax, 0x507262f
call fcn.050702f7
mov eax, dword [ebp + 0x9d8]
mov edi, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x9dc]
push edi
lea ecx, [ebp - 0x550]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], eax
call fcn.0502719a
xor esi, esi
inc esi
push esi
xor ebx, ebx
push esi
lea eax, [ebp + 0x7c0]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.05015a3b
add esp, 0x10
test al, al
je 0x5015e26
push esi
push esi
lea eax, [ebp + 0x7c0]
push eax
lea eax, [ebp - 0x550]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.05015c35
add esp, 0x18
call fcn.0506ab3c
test al, al
je 0x5015e63
push ebx
push esi
lea eax, [ebp + 0x7c0]
push ebx
push eax
call fcn.05015a3b
add esp, 0x10
test al, al
je 0x5015e63
push esi
push esi
lea eax, [ebp + 0x7c0]
push eax
lea eax, [ebp - 0x550]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.05015c35
add esp, 0x18
push esi
push ebx
lea eax, [ebp + 0x7c0]
push ebx
push eax
call fcn.05015a3b
add esp, 0x10
test al, al
je 0x5015e97
push ebx
push esi
lea eax, [ebp + 0x7c0]
push eax
lea eax, [ebp - 0x550]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.05015c35
add esp, 0x18
call fcn.0506ab3c
test al, al
je 0x5015ed4
push ebx
push ebx
lea eax, [ebp + 0x7c0]
push ebx
push eax
call fcn.05015a3b
add esp, 0x10
test al, al
je 0x5015ed4
push ebx
push esi
lea eax, [ebp + 0x7c0]
push eax
lea eax, [ebp - 0x550]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.05015c35
add esp, 0x18
lea eax, [ebp + 0x7c0]
push eax
push edi
mov byte [ebp + 0x7c0], bl
call fcn.05015992
test al, al
pop ecx
pop ecx
je 0x5015f0b
push ebx
push esi
lea eax, [ebp + 0x7c0]
push eax
lea eax, [ebp - 0x550]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.05015c35
add esp, 0x18
xor esi, esi
lea eax, [ebp + 0x7c0]
push eax
push esi
call fcn.05015a07
test al, al
pop ecx
pop ecx
je 0x5015f3f
push ebx
push 1
lea eax, [ebp + 0x7c0]
push eax
lea eax, [ebp - 0x550]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.05015c35
add esp, 0x18
inc esi
cmp esi, 2
jb 0x5015f0d
lea eax, [ebp + 0x524]
push eax
mov dword [ebp + 0x524], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x5016383
cmp dword [ebp + 0x528], 6
sbb al, al
inc al
je 0x5016383
lea eax, [ebp + 0x210]
push eax
push edi
call fcn.05015992
test al, al
pop ecx
pop ecx
je 0x5016383
lea eax, [ebp + 0x420]
push eax
call fcn.05015b8b
test al, al
pop ecx
je 0x5016383
lea eax, [ebp + 0x420]
push eax
lea ecx, [ebp + 0x314]
call fcn.05026f32
mov byte [ebp - 4], 1
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x11]
push eax
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp + 0x6bc]
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x314]
call fcn.05026f63
test al, al
je 0x50160fd
cmp byte [ebp - 0x11], bl
jne 0x5015fb7
lea eax, [ebp + 0x6bc]
push eax
call sub.MSVCR80.dll_strlen
cmp eax, 4
pop ecx
jbe 0x5015fb7
lea eax, [ebp + eax + 0x6b8]
push 4
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVCR80.dll_strncpy]
xor edi, edi
add esp, 0xc
inc edi
lea esi, [ebp + edi - 0x20]
movsx eax, byte [esi]
push eax
call dword [sym.imp.MSVCR80.dll_tolower]
inc edi
cmp edi, 4
pop ecx
mov byte [esi], al
jl 0x5016016
push 4
lea eax, [ebp - 0x20]
push str..icc
push eax
call dword [sym.imp.MSVCR80.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x5015fb7
lea eax, [ebp + 0x210]
push eax
lea eax, [ebp + 0x5b8]
push eax
call fcn.0502688e
mov edi, dword [sym.imp.MSVCR80.dll_strrchr]
lea eax, [ebp + 0x6bc]
push 0x5c
push eax
call edi
mov esi, eax
lea eax, [ebp + 0x6bc]
push 0x2e
push eax
inc esi
call edi
mov edi, eax
sub edi, esi
push edi
lea eax, [ebp + 0x8c4]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_strncpy]
lea eax, [ebp + 0x8c4]
push eax
lea eax, [ebp + 0x5b8]
push eax
mov byte [ebp + edi + 0x8c4], bl
call fcn.050268a4
lea eax, [ebp + 0x5b8]
push str..cdmp
push eax
call fcn.050268a4
add esp, 0x34
lea eax, [ebp + 0x5b8]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.050268f3
lea ecx, [ebp - 0x24]
call fcn.0502691d
mov dword [ebp - 4], 1
jmp 0x5015fb7
lea eax, [ebp + 0x210]
push eax
lea ecx, [ebp + 0x104]
call fcn.05026f32
mov byte [ebp - 4], 4
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x11]
push eax
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp + 0x6bc]
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x104]
call fcn.05026f63
test al, al
je 0x5016347
cmp byte [ebp - 0x11], bl
jne 0x5016113
lea eax, [ebp + 0x6bc]
push eax
call sub.MSVCR80.dll_strlen
cmp eax, 5
pop ecx
jbe 0x5016113
lea eax, [ebp + eax + 0x6b7]
push 5
push eax
lea eax, [ebp + 0x9c4]
push eax
call dword [sym.imp.MSVCR80.dll_strncpy]
xor edi, edi
add esp, 0xc
inc edi
lea esi, [ebp + edi + 0x9c4]
movsx eax, byte [esi]
push eax
call dword [sym.imp.MSVCR80.dll_tolower]
inc edi
cmp edi, 5
pop ecx
mov byte [esi], al
jl 0x5016175
push 5
lea eax, [ebp + 0x9c4]
push str..cdmp
push eax
call dword [sym.imp.MSVCR80.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x5016113
lea eax, [ebp + 0x420]
push eax
lea eax, [ebp + 0x5b8]
push eax
call fcn.0502688e
mov edi, dword [sym.imp.MSVCR80.dll_strrchr]
lea eax, [ebp + 0x6bc]
push 0x5c
push eax
call edi
mov esi, eax
lea eax, [ebp + 0x6bc]
push 0x2e
push eax
inc esi
call edi
mov edi, eax
sub edi, esi
push edi
lea eax, [ebp + 0x8c4]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_strncpy]
lea eax, [ebp + 0x8c4]
push eax
lea eax, [ebp + 0x5b8]
push eax
mov byte [ebp + edi + 0x8c4], bl
call fcn.050268a4
lea eax, [ebp + 0x5b8]
push str..icc
push eax
call fcn.050268a4
add esp, 0x34
lea eax, [ebp + 0x5b8]
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.050268f3
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0x6bc]
push eax
mov byte [ebp - 4], 6
call fcn.05026ec7
pop ecx
pop ecx
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0x5b8]
push eax
call fcn.05026ec7
pop ecx
pop ecx
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.050413ff
cmp eax, 0xffffffff
pop ecx
pop ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
jne 0x5016281
call fcn.0502691d
jmp 0x501610f
call fcn.0502691d
mov dword [ebp - 4], 4
jmp 0x5016297
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x6bc]
push eax
push dword [ebp - 0x2c]
call fcn.05028192
add esp, 0xc
test al, al
je 0x5016113
mov eax, dword [ebp - 0x20]
mov esi, dword [eax + 0x28]
push esi
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x160]
call fcn.0501488a
push dword [ebp - 0x160]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
push esi
push ebx
mov byte [ebp - 4], 8
call dword [eax + 0x18]
push 0x41434520
push 0x3f3f3f3f
lea eax, [ebp + 0x5b8]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call fcn.0502725c
push esi
push dword [ebp - 0x160]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.050269e6
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call fcn.0502691d
mov dword [ebp - 4], 8
jmp 0x501632b
mov ecx, dword [ebp - 0x20]
call fcn.0503f8a6
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 4
call fcn.050148bc
jmp 0x5016113
push ebx
push 1
lea eax, [ebp + 0x420]
push eax
lea eax, [ebp - 0x550]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.05015c35
add esp, 0x18
lea ecx, [ebp + 0x104]
mov byte [ebp - 4], 1
call fcn.05026f4d
lea ecx, [ebp + 0x314]
mov byte [ebp - 4], bl
call fcn.05026f4d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x550]
call fcn.050271a9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x9cc]
xor ecx, ebp
call fcn.05070186
add ebp, 0x9d0
leave
ret