Function at 0x1004ca50
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x10070338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [esp + 0x128]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
mov dword [esp + 0x118], ebp
call fcn.1004c960
mov ebx, dword [esp + 0x13c]
xor esi, esi
lea ecx, [esp + 0xe4]
push esi
mov dword [ebp], 0x100719bc
mov eax, 0xd
mov dword [ebp + 0x58], esi
mov dword [ebp + 0x54], esi
mov dword [ebp + 0x44], esi
mov dword [ebp + 0x48], esi
mov dword [ebp + 0x4c], esi
mov dword [ebp + 0x50], esi
mov dword [ebp + 0x30], esi
push ecx
mov ecx, dword [ebx + 8]
push 0x10078140
mov dword [esp + 0x13c], esi
mov dword [esp + 0xf0], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x110], eax
call fcn.1000bbe0
mov ecx, dword [ebx + 8]
lea edx, [esp + 0xc4]
push esi
push edx
push 0x10078144
call fcn.1000bbe0
mov ecx, dword [ebx + 8]
lea eax, [esp + 0xa4]
push esi
push eax
push str.Length
call fcn.1000bbe0
lea ecx, [esp + 0x44]
push esi
push ecx
mov ecx, dword [ebx + 8]
push 0x10085ed4
call fcn.1000bbe0
mov ecx, dword [ebx + 8]
lea edx, [esp + 0x74]
push esi
push edx
push 0x10078094
call fcn.1000bbe0
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x54]
push esi
push eax
push 0x10085dbc
call fcn.1000bbe0
lea ecx, [esp + 0x34]
push esi
push ecx
mov ecx, dword [ebx + 8]
push 0x101d90ac
call fcn.1000bbe0
mov ecx, dword [ebx + 8]
lea edx, [esp + 0x94]
push esi
push edx
push 0x10085ed0
call fcn.1000bbe0
mov eax, dword [ebp + 4]
lea ecx, [esp + 0xd4]
push esi
push ecx
mov eax, dword [eax + 0x20]
push 0x1008c9dc
mov ecx, dword [eax + 0x30]
call fcn.1000bbe0
mov ecx, dword [esp + 0xe4]
mov eax, 1
cmp ecx, eax
jne 0x1004d17c
cmp dword [esp + 0xc4], eax
jne 0x1004d17c
cmp dword [esp + 0x94], eax
jne 0x1004d17c
mov edx, dword [esp + 0x44]
mov ecx, 3
cmp edx, ecx
jne 0x1004d17c
cmp dword [esp + 0x74], ecx
jne 0x1004d17c
mov ecx, dword [esp + 0xcc]
mov esi, dword [esp + 0xec]
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x7c]
cmp ecx, 4
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x38], ecx
jg 0x1004cc4f
cmp dword [edi], 0x20
jne 0x1004cc4f
cmp dword [edx], 0x20
je 0x1004cca1
cmp ecx, 5
jne 0x1004d171
mov eax, dword [edi]
cmp eax, 0x30
jl 0x1004d171
cmp dword [edx], 0x30
jl 0x1004d171
mov edx, dword [esp + 0x54]
mov eax, 3
cmp edx, eax
jne 0x1004d171
mov edx, dword [esp + 0x5c]
cmp dword [edx], 0x20
jne 0x1004d171
cmp dword [esp + 0x34], eax
jne 0x1004d171
mov eax, dword [esp + 0x3c]
cmp dword [eax], 0x20
jne 0x1004d171
cmp ecx, 2
mov dword [ebp + 0x3c], 0
je 0x1004cccc
cmp dword [esp + 0xa4], 1
jne 0x1004cccc
mov eax, dword [esp + 0xac]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp + 0x30], eax
jmp 0x1004ccd3
mov dword [ebp + 0x30], 5
cmp esi, 4
mov dword [ebp + 0x40], 1
je 0x1004cce8
cmp esi, 5
jne 0x1004cf0e
cmp ecx, 4
je 0x1004ccf6
cmp ecx, 5
jne 0x1004cf0e
lea ecx, [esp + 0xf4]
push 0
push ecx
mov ecx, dword [ebx + 8]
push 0x101d90a8
call fcn.1000bbe0
mov ecx, dword [ebx + 8]
lea edx, [esp + 0x64]
push 0
push edx
push 0x101d90a0
call fcn.1000bbe0
mov ecx, dword [ebx + 8]
lea eax, [esp + 0xb4]
push 0
push eax
push 0x101d9098
call fcn.1000bbe0
cmp dword [esp + 0xf4], 7
jne 0x1004ceb7
cmp dword [esp + 0x64], 4
jne 0x1004ceb7
cmp dword [esp + 0xb4], 4
jne 0x1004ceb7
mov esi, dword [esp + 0xbc]
mov eax, dword [esp + 0x6c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1004cd8e
test cl, cl
je 0x1004cd8a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1004cd8e
add eax, 2
add esi, 2
test cl, cl
jne 0x1004cd6a
xor eax, eax
jmp 0x1004cd93
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1004ceb7
mov eax, dword [esp + 0x6c]
mov edi, 0x10086998
mov esi, eax
mov ecx, 9
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1004cdbf
or eax, 0xffffffff
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x34], eax
jmp 0x1004ceb7
lea ecx, [esp + 0x24]
push 0
push ecx
mov ecx, dword [esp + 0x104]
push eax
call fcn.1000bbe0
cmp dword [eax], 7
jne 0x1004ceae
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x84]
push 0
push edx
push 0x101d9094
call fcn.1000bbe0
cmp dword [esp + 0x84], 4
jne 0x1004cea2
mov eax, dword [esp + 0x8c]
mov edi, 0x101d9090
mov esi, eax
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1004ce2b
mov dword [ebp + 0x34], 2
mov dword [ebp + 0x38], 3
jmp 0x1004ce78
mov edi, 0x101d9088
mov esi, eax
mov ecx, 6
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1004ce54
mov dword [ebp + 0x34], 2
mov dword [ebp + 0x38], 3
mov dword [ebp + 0x3c], 1
jmp 0x1004ce78
mov edi, 0x101d9080
mov esi, eax
mov ecx, 6
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1004cea2
mov eax, 5
mov dword [ebp + 0x3c], 2
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x38], eax
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push 0
push eax
push str.Length
call fcn.1000bbe0
cmp dword [eax], 1
jne 0x1004ce99
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 0x30], ecx
lea ecx, [esp + 0x14]
call fcn.10045c00
lea ecx, [esp + 0x84]
call fcn.10045c00
lea ecx, [esp + 0x24]
call fcn.10045c00
lea ecx, [esp + 0xb4]
call fcn.10045c00
lea ecx, [esp + 0x64]
call fcn.10045c00
lea ecx, [esp + 0xf4]
call fcn.10045c00
mov ecx, dword [ebx + 8]
lea edx, [esp + 0x104]
push 0
push edx
push 0x101d9070
call fcn.1000bbe0
cmp dword [eax], 0
jne 0x1004cefe
mov eax, dword [esp + 0x10c]
mov dword [ebp + 0x40], eax
lea ecx, [esp + 0x104]
call fcn.10045c00
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x9c]
push 8
mov dword [ebp + 8], ecx
mov esi, edi
call fcn.10060e1a
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x130], 1
je 0x1004cf3e
push esi
mov ecx, eax
call fcn.100327f0
jmp 0x1004cf40
xor eax, eax
mov esi, dword [esp + 0x7c]
push 8
mov byte [esp + 0x134], 0
mov dword [ebp + 0x44], eax
call fcn.10060e1a
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x130], 2
je 0x1004cf73
push esi
mov ecx, eax
call fcn.100327f0
jmp 0x1004cf75
xor eax, eax
mov dword [ebp + 0x48], eax
mov eax, dword [ebp + 0x34]
mov edi, 1
mov byte [esp + 0x130], 0
cmp eax, edi
jl 0x1004d08b
cmp eax, 2
jg 0x1004d08b
mov ecx, dword [ebp + 0x38]
cmp ecx, 2
jl 0x1004d08b
cmp ecx, 3
jg 0x1004d08b
cmp dword [esp + 0xd4], 6
jne 0x1004d040
mov ecx, dword [esp + 0xdc]
lea edx, [esp + 0x118]
push edx
push 0
call fcn.10004df0
mov ecx, dword [eax]
push 8
cmp ecx, 3
jne 0x1004d004
mov esi, dword [esp + 0x124]
call fcn.10060e1a
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x130], 3
je 0x1004d025
push esi
mov ecx, eax
call fcn.100327f0
jmp 0x1004d027
call fcn.10060e1a
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x130], 4
je 0x1004d025
mov ecx, eax
call fcn.10032670
jmp 0x1004d027
xor eax, eax
lea ecx, [esp + 0x118]
mov byte [esp + 0x130], 0
mov dword [ebp + 0x54], eax
call fcn.10045c00
jmp 0x1004d070
push 8
call fcn.10060e1a
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x130], 5
je 0x1004d063
mov ecx, eax
call fcn.10032670
jmp 0x1004d065
xor eax, eax
mov byte [esp + 0x130], 0
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x30]
cmp eax, 0x10
jg 0x1004d07c
test eax, eax
jge 0x1004d083
mov dword [ebp + 0x30], 0x10
mov dword [ebp + 0x58], edi
jmp 0x1004d18c
cmp eax, 5
jne 0x1004d14f
cmp dword [ebp + 0x38], eax
jne 0x1004d14f
push 8
call fcn.10060e1a
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x130], 6
je 0x1004d0c0
mov ecx, eax
call fcn.10032670
jmp 0x1004d0c2
xor eax, eax
mov esi, dword [esp + 0x5c]
push 8
mov byte [esp + 0x134], 0
mov dword [ebp + 0x54], eax
call fcn.10060e1a
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x130], 7
je 0x1004d0f5
push esi
mov ecx, eax
call fcn.100327f0
jmp 0x1004d0f7
xor eax, eax
mov esi, dword [esp + 0x3c]
push 8
mov byte [esp + 0x134], 0
mov dword [ebp + 0x4c], eax
call fcn.10060e1a
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x130], 8
je 0x1004d12a
push esi
mov ecx, eax
call fcn.100327f0
jmp 0x1004d12c
xor eax, eax
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x30]
cmp eax, 0x20
mov byte [esp + 0x130], 0
jg 0x1004d143
test eax, eax
jge 0x1004d14a
mov dword [ebp + 0x30], 0x20
mov dword [ebp + 0x58], edi
jmp 0x1004d18c
cmp eax, 0xffffffff
jne 0x1004d159
cmp dword [ebp + 0x38], eax
je 0x1004d18c
mov ecx, dword [ebp + 0x38]
push ecx
push eax
push 0x101d9028
push 0xffffffffffffffff
push 6
call fcn.1000bd30
add esp, 0x14
jmp 0x1004d18c
push 0x101d9008
push 0xffffffffffffffff
push 1
jmp 0x1004d184
push 0x101d8ff0
push 0xffffffffffffffff
push eax
call fcn.1000bd30
add esp, 0xc
lea ecx, [esp + 0xd4]
call fcn.10045c00
lea ecx, [esp + 0x94]
call fcn.10045c00
lea ecx, [esp + 0x34]
call fcn.10045c00
lea ecx, [esp + 0x54]
call fcn.10045c00
lea ecx, [esp + 0x74]
call fcn.10045c00
lea ecx, [esp + 0x44]
call fcn.10045c00
lea ecx, [esp + 0xa4]
call fcn.10045c00
lea ecx, [esp + 0xc4]
call fcn.10045c00
lea ecx, [esp + 0xe4]
call fcn.10045c00
mov ecx, dword [esp + 0x128]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 8