Function at 0x4ecb80
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x5e25c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
xor esi, esi
mov edx, ecx
mov eax, dword [edi + 0x38]
mov dword [esp + 0x1c], edx
cmp eax, esi
je 0x4ecbbb
cmp dword [edi + 0x3c], esi
je 0x4ecbbb
mov ebx, 1
jmp 0x4ecbbd
xor ebx, ebx
mov eax, dword [edi + 0x54]
mov ecx, dword [edi + 0x5c]
mov ebp, eax
cmp ecx, ebp
mov dword [esp + 0x30], ebp
jge 0x4ecbd8
cmp ecx, 0xffffffff
je 0x4ecbd8
mov ebp, ecx
mov dword [esp + 0x30], ebp
cmp ebp, 0xffffffff
jne 0x4ecbe4
mov ebp, dword [edi + 0x10]
mov dword [esp + 0x30], ebp
cmp eax, 0xffffffff
je 0x4ecdd1
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
cmp ebp, esi
mov dword [esp + 0x14], esi
jle 0x4ecca2
mov dword [esp + 0x10], esi
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
push 0x6688dc
mov esi, dword [ecx + eax]
push esi
call ebx
test eax, eax
je 0x4ed0af
push 0x6688d8
push esi
call ebx
test eax, eax
je 0x4ed0af
push 0x6688d4
push esi
call ebx
test eax, eax
je 0x4ed0af
push 0x654d18
push esi
call ebx
test eax, eax
je 0x4ed0af
push 0x6688d0
push esi
call ebx
test eax, eax
je 0x4ed0af
push 0x6688cc
push esi
call ebx
test eax, eax
je 0x4ed0af
push 0x6688c8
push esi
call ebx
test eax, eax
jne 0x4ecc86
mov eax, dword [edi + 0x98]
test eax, eax
je 0x4ed0af
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc eax
add edx, 0xc
cmp eax, ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jl 0x4ecc03
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x54]
dec edx
cmp eax, edx
jne 0x4ecd69
mov eax, dword [edi + 0x68]
test eax, eax
je 0x4eccd8
mov eax, dword [edi + 0x30]
test eax, eax
jne 0x4ecf0d
mov eax, dword [edi]
mov eax, dword [eax]
mov cl, byte [eax]
push ecx
call dword [sym.imp.USER32.dll_IsCharUpperA]
test eax, eax
jne 0x4ecf0d
mov eax, dword [edi + 0x24]
test eax, eax
jne 0x4ecf0d
mov edx, dword [edi]
push 0x6688c4
mov eax, dword [edx]
push eax
call ebx
test eax, eax
je 0x4ecd03
mov eax, dword [edi]
push 0x6688c0
mov eax, dword [eax]
push eax
call ebx
test eax, eax
jne 0x4ecd69
mov ecx, dword [edi]
push 0x652af0
mov esi, 2
mov eax, dword [ecx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4ecd22
mov esi, 3
mov eax, dword [edi]
lea edx, [esi + esi*2]
mov ecx, dword [eax + edx*4 - 4]
lea eax, [eax + edx*4]
cmp ecx, 0xe
jne 0x4ecd69
cmp dword [eax + 8], 0xb
jne 0x4ecd69
mov ebx, dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
xor esi, esi
test ebp, ebp
jle 0x4ecd5d
mov cl, byte [ebx + esi]
push ecx
call dword [sym.imp.USER32.dll_IsCharUpperA]
test eax, eax
je 0x4ecd5d
inc esi
cmp esi, ebp
jl 0x4ecd4a
cmp esi, ebp
mov ebp, dword [esp + 0x30]
je 0x4ecf0d
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x60]
test eax, eax
jne 0x4ecd9c
mov ecx, dword [edi + 0x2c]
test ecx, ecx
jne 0x4ecf0d
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x4ecd94
mov ecx, dword [edi + 0x34]
mov edx, dword [edi + 0x54]
cmp ecx, edx
jge 0x4ecf0d
test eax, eax
je 0x4ed0af
mov eax, dword [edi + 0x38]
test eax, eax
jne 0x4ecf09
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x54]
lea edx, [eax - 3]
cmp ecx, edx
jge 0x4ecf09
mov ecx, dword [edi + 0x68]
test ecx, ecx
je 0x4ed0af
cmp eax, 5
jg 0x4ed0af
jmp 0x4ecf09
mov eax, dword [edx + 0x60]
cmp eax, esi
jne 0x4ecdf3
cmp dword [edi + 0x2c], esi
je 0x4ecdef
cmp dword [edi + 0x68], esi
jne 0x4ece04
cmp dword [edi + 0x24], esi
jne 0x4ece04
cmp dword [edi + 0x98], esi
jne 0x4ece04
cmp eax, esi
je 0x4ece0c
cmp dword [edi + 0x68], esi
je 0x4ece0c
cmp dword [edi + 0x10], 5
jle 0x4ece04
cmp dword [edi + 0x1c], 0xc
jle 0x4ece0c
mov ebp, dword [edi + 0x10]
jmp 0x4ecf0d
cmp ebx, esi
je 0x4ed0af
mov eax, dword [edi + 0x58]
push str.WHEREUPON
mov dword [esp + 0x14], 0
lea ecx, [eax + 1]
lea edx, [eax + eax*2]
mov eax, dword [edi]
mov dword [esp + 0x18], ecx
mov eax, dword [eax + edx*4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4ed0af
mov ebx, dword [edi + 0x58]
mov eax, dword [esp + 0x30]
inc ebx
cmp ebx, eax
jge 0x4ed0af
mov edx, dword [edi]
lea ecx, [ebx + ebx*2]
mov eax, dword [edx + ecx*4]
lea esi, [edx + ecx*4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
add eax, 0xfffffff7
mov dword [esp + 0x1c], 0
cmp eax, 5
ja case.0x4ece7b.12
jmp dword [eax*4 + 0x4ed0cc]
xor ebp, ebp
mov ecx, dword [esp + 0x18]
cmp ecx, 3
mov eax, ecx
jl 0x4ece94
mov eax, 3
cmp ebp, eax
jge 0x4ecec7
mov eax, dword [esi]
mov al, byte [eax + ebp]
push eax
call dword [sym.imp.USER32.dll_IsCharUpperA]
test eax, eax
jne 0x4eceab
inc ebp
jmp 0x4ece84
mov eax, dword [esp + 0x10]
lea ecx, [ebx + 1]
inc eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 1
jle 0x4eced4
mov ebx, dword [esp + 0x30]
jmp case.0x4ece7b.12
mov eax, dword [esp + 0x1c]
test eax, eax
jne case.0x4ece7b.12
cmp ecx, 2
jle case.0x4ece7b.12
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x30]
inc ebx
cmp ebx, eax
jl 0x4ece52
cmp dword [esp + 0x10], 1
jle 0x4ed0af
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov ebp, dword [esp + 0x30]
xor esi, esi
test ebp, ebp
jle 0x4ecfa5
or ebx, 0xffffffff
mov edx, dword [edi]
lea ecx, [esi + esi*2]
lea eax, [edx + ecx*4]
mov ecx, dword [edx + ecx*4 + 8]
add ecx, 0xfffffff7
cmp ecx, 5
ja case.default.0x4ecf2e
jmp dword [ecx*4 + 0x4ed0e4]
test byte [eax + 4], 8
je 0x4ecf9c
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004ec190
add esp, 8
push eax
lea ecx, [edi + 0xa0]
mov dword [esp + 0x2c], 0
call fcn.0059dc15
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], ebx
call fcn.0059d7fd
jmp 0x4ecf9c
inc dword [esp + 0x10]
lea edx, [ebx + 1]
mov dword [esp + 0x14], edx
jmp case.0x4ece7b.12
test byte [esi + 4], 8
jne case.0x4ece7b.12
cmp dword [esp + 0x10], 1
jle 0x4ecee1
mov ebx, dword [esp + 0x30]
jmp case.0x4ece7b.12
mov esi, ebp
inc esi
cmp esi, ebp
jl 0x4ecf1a
mov eax, dword [edi + 0x10]
mov esi, ebp
cmp ebp, eax
jge 0x4ecfca
mov edx, dword [edi]
lea ecx, [ebp + ebp*2]
push 0x652b60
mov eax, dword [edx + ecx*4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4ecfca
lea esi, [ebp + 1]
mov eax, dword [edi + 0x10]
cmp esi, eax
jge 0x4ed077
mov edx, dword [edi]
lea ecx, [esi + esi*2]
cmp dword [edx + ecx*4 + 8], 0xe
jne 0x4ecfe2
inc esi
cmp esi, eax
jge 0x4ed077
mov ecx, dword [edi]
lea eax, [esi + esi*2]
lea ebx, [ecx + eax*4]
mov eax, dword [ecx + eax*4 + 8]
cmp eax, 0xb
je 0x4ed000
cmp eax, 9
jne 0x4ed077
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x4ed013
mov eax, dword [edi + 0x30]
test eax, eax
je 0x4ed077
cmp dword [edi + 0x34], esi
jle 0x4ed077
mov esi, dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jle 0x4ed033
push 0x652af0
push esi
call fcn.0055bac0
add esp, 8
test eax, eax
je 0x4ed077
lea esi, [edi + 0xa0]
push 0x654d88
mov ecx, esi
call fcn.0059dbd9
lea edx, [esp + 0x1c]
push ebx
push edx
call fcn.004ec190
add esp, 8
mov ebx, 1
push eax
mov ecx, esi
mov dword [esp + 0x2c], ebx
call fcn.0059dc15
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], 0xffffffff
call fcn.0059d7fd
jmp 0x4ed07c
mov ebx, 1
mov eax, dword [edi + 0xa0]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4ed0ab
cmp dword [edi + 0x64], 0xffffffff
je 0x4ed09f
mov eax, dword [edi + 0x98]
test eax, eax
je 0x4ed09f
mov dword [edi + 0xa4], ebx
mov ecx, dword [esp + 0x34]
mov dword [edi + 0x9c], ebx
mov dword [ecx], ebx
mov eax, ebx
jmp 0x4ed0b4
mov eax, 1
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8