Function at 0x10013270
Capabilities:
Check os version
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003fdc5
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x10057050]
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 eax, edx
mov dword [ebp - 0xf0], eax
mov esi, ecx
cmp dword [eax + 0x10], 0
je 0x100134b1
lea eax, [ebp - 0xec]
mov dword [ebp - 0xec], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xe8], 6
jne 0x100132df
cmp dword [ebp - 0xe4], 1
je 0x100134b1
push esi
lea ecx, [ebp - 0x40]
call fcn.10004360
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x40]
lea ebx, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
lea edi, [ebp - 0x40]
cmovae ecx, edx
cmovae ebx, edx
add eax, ecx
cmp dword [ebp - 0x2c], 0x10
mov esi, eax
cmovae edi, edx
cmp edi, esi
je 0x10013326
sub ebx, edi
movzx eax, byte [edi]
push eax
call fcn.10022da9
mov byte [edi + ebx], al
add esp, 4
inc edi
cmp edi, esi
jne 0x10013312
push dword [ebp - 0xf0]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.10004360
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
lea ebx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x28]
cmovae ecx, edx
cmovae ebx, edx
add eax, ecx
cmp dword [ebp - 0x14], 0x10
mov esi, eax
cmovae edi, edx
cmp edi, esi
je 0x10013379
sub ebx, edi
movzx eax, byte [edi]
push eax
call fcn.10022da9
mov byte [edi + ebx], al
add esp, 4
inc edi
cmp edi, esi
jne 0x10013365
mov byte [ebp - 4], 1
mov eax, 0x7fffffff
mov ecx, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 1
jb 0x100134cf
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 1
cmovae eax, dword [ebp - 0x40]
push 0x100503e4
push ecx
push eax
push ecx
push dword [ebp - 0xf0]
lea ecx, [ebp - 0x58]
call fcn.10010950
push ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.10010660
mov edx, dword [ebp - 0x44]
mov esi, eax
cmp esi, 0xffffffff
setne bl
cmp edx, 0x10
jb 0x100133fc
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100133f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100134d4
push edx
push ecx
call fcn.1001c685
add esp, 8
cmp dword [ebp - 0xe8], 6
jb 0x1001343b
cmp dword [ebp - 0xe4], 2
jb 0x1001343b
cmp esi, 0xffffffff
jne 0x1001343b
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10013070
push 0
push 0
call esi
push 0
push 0
push 0
push 0x10013090
push 0
push 0
call esi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1001346b
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10013461
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100134d4
push edx
push ecx
call fcn.1001c685
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x100134ad
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100134a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100134d4
push edx
push ecx
call fcn.1001c685
add esp, 8
mov al, bl
jmp 0x100134b3
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.1001c32d
mov esp, ebp
pop ebp
ret
call fcn.10001450
call fcn.10020d58
int3