Function at 0x422010
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x459996
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a0
mov al, byte [esp + 0x33]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov byte [esp + 0x14], al
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov cl, byte [esp + 0x43]
xor esi, esi
xor eax, eax
mov dword [esp + 0x2b8], ebx
mov byte [esp + 0x28], cl
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x2c0]
mov byte [esp + 0x2b8], 1
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x10], 1
cmp word [edx], bx
je 0x422760
mov eax, dword [esp + 0x2c0]
mov si, word [eax + ebx*2]
lea ebp, [eax + ebx*2]
mov edi, esi
and edi, 0xffff
push edi
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
jne 0x422473
push edi
call dword [sym.imp.MSVCRT.dll_isdigit]
add esp, 4
test eax, eax
je 0x42215a
mov edi, ebp
mov dword [esp + 0x10], 0
lea ebp, [esp + 0x80]
mov eax, dword [esp + 0x10]
cmp eax, 0x14
ja 0x4220f2
mov ecx, eax
mov word [ebp], si
inc ecx
add ebp, 2
mov dword [esp + 0x10], ecx
mov si, word [edi + 2]
add edi, 2
mov ecx, esi
inc ebx
and ecx, 0xffff
push ecx
call dword [sym.imp.MSVCRT.dll_isdigit]
add esp, 4
test eax, eax
jne 0x4220db
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x80]
xor edi, edi
push eax
mov word [esp + edx*2 + 0x84], di
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
cmp ecx, edi
je 0x42213e
neg eax
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0042fe70
dec ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x3c], edi
jmp 0x422475
push edi
call dword [sym.imp.MSVCRT.dll_isalpha]
add esp, 4
test eax, eax
je 0x42224e
lea edx, [esp + 0xac]
mov dword [esp + 0x10], 0
mov dword [esp + 0x3c], edx
cmp dword [esp + 0x10], 0x100
jg 0x4221a0
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
inc edx
mov word [eax], si
add eax, 2
mov dword [esp + 0x10], edx
mov dword [esp + 0x3c], eax
mov si, word [ebp + 2]
add ebp, 2
mov edi, esi
inc ebx
and edi, 0xffff
push edi
call dword [sym.imp.MSVCRT.dll_isalpha]
add esp, 4
test eax, eax
jne 0x42217f
push edi
call dword [sym.imp.MSVCRT.dll_isdigit]
add esp, 4
test eax, eax
jne 0x42217f
cmp si, 0x5f
je 0x42217f
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x2c8]
xor esi, esi
dec ebx
mov word [esp + eax*2 + 0xac], si
mov eax, dword [ebp + 4]
cmp eax, esi
mov dword [esp + 0x50], esi
jne 0x4221f7
xor edi, edi
jmp 0x4221ff
mov edi, dword [ebp + 8]
sub edi, eax
sar edi, 3
cmp edi, esi
jle 0x422231
mov eax, dword [ebp + 4]
lea ecx, [esp + 0xac]
push ecx
mov eax, dword [eax + esi*8]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x422226
inc esi
cmp esi, edi
jl 0x422203
jmp 0x422231
mov ebp, dword [ebp + 4]
mov edx, dword [ebp + esi*8 + 4]
mov dword [esp + 0x50], edx
lea eax, [esp + 0x50]
lea ecx, [esp + 0x28]
push eax
call fcn.0042fe70
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], eax
jmp 0x422473
lea eax, [edi - 0x21]
cmp eax, 0x5b
ja case.0x422262.44
xor ecx, ecx
mov cl, byte [eax + 0x42283c]
jmp dword [ecx*4 + 0x42280c]
lea edx, [esp + 0x54]
lea ecx, [esp + 0x14]
push edx
mov dword [esp + 0x58], 1
call fcn.0042fe70
jmp 0x42246b
lea eax, [esp + 0x78]
push 1
lea ecx, [esp + 0x74]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00431580
mov ecx, eax
call fcn.00431610
mov ecx, eax
call fcn.004315e0
mov eax, dword [eax]
test eax, eax
je 0x422324
cmp eax, 1
je 0x422324
lea edx, [esp + 0x68]
lea ecx, [esp + 0x14]
push edx
call fcn.00431580
mov ecx, dword [eax]
mov eax, dword [eax + 4]
dec ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x58]
call fcn.004315e0
mov esi, dword [eax]
lea ecx, [esp + 0x14]
call fcn.00430690
lea eax, [esp + 0x28]
push eax
push esi
call fcn.004228a0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
add esp, 8
lea eax, [edx + ecx]
lea ecx, [esp + 0x60]
mov dword [esp + 0x44], eax
push 1
lea eax, [esp + 0x18]
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x50], eax
call fcn.00431610
mov ecx, eax
call fcn.004315e0
mov eax, dword [eax]
test eax, eax
jne 0x4222ad
lea ecx, [esp + 0x14]
call fcn.00430690
jmp 0x42246b
xor eax, eax
sub edi, 0x2b
je 0x422345
sub edi, 2
jne 0x42234a
mov eax, 6
jmp 0x42234a
mov eax, 5
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4223cd
xor edx, edx
cmp eax, 6
sete dl
mov dword [esp + 0x3c], edx
jmp 0x42246b
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
push eax
push ecx
push 3
jmp 0x422463
lea edx, [esp + 0x28]
lea eax, [esp + 0x14]
push edx
push eax
push 4
jmp 0x422463
mov ecx, dword [esp + 0x2c0]
cmp word [ecx + ebx*2 + 2], 0x3d
jne 0x42239c
mov eax, 9
inc ebx
jmp 0x4223a1
mov eax, 7
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
push edx
push ecx
push eax
jmp 0x422463
mov edx, dword [esp + 0x2c0]
cmp word [edx + ebx*2 + 2], 0x3d
jne 0x4223c8
mov eax, 0xa
inc ebx
jmp 0x4223cd
mov eax, 8
lea ecx, [esp + 0x28]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
jmp 0x422463
mov eax, dword [esp + 0x2c0]
cmp word [eax + ebx*2 + 2], 0x3d
jne 0x42254e
lea ecx, [esp + 0x28]
lea edx, [esp + 0x14]
push ecx
push edx
inc ebx
push 0xb
jmp 0x422463
mov eax, dword [esp + 0x2c0]
cmp word [eax + ebx*2 + 2], 0x3d
jne 0x4225aa
lea ecx, [esp + 0x28]
lea edx, [esp + 0x14]
push ecx
push edx
inc ebx
push 0xc
jmp 0x422463
mov eax, dword [esp + 0x2c0]
cmp word [eax + ebx*2 + 2], 0x26
jne 0x422606
lea ecx, [esp + 0x28]
lea edx, [esp + 0x14]
push ecx
push edx
inc ebx
push 0xd
jmp 0x422463
mov eax, dword [esp + 0x2c0]
cmp word [eax + ebx*2 + 2], 0x7c
jne 0x422662
lea ecx, [esp + 0x28]
lea edx, [esp + 0x14]
push ecx
push edx
inc ebx
push 0xe
call fcn.00422a30
add esp, 0xc
mov dword [esp + 0x10], 1
xor edi, edi
mov eax, dword [esp + 0x2c0]
inc ebx
cmp word [eax + ebx*2], di
jne 0x422090
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x4224dc
lea esi, [esp + 0x14]
mov ecx, dword [esp + 0x20]
add eax, ecx
mov ecx, esi
mov dword [esp + 0x60], eax
dec eax
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], eax
call fcn.004315e0
mov ecx, dword [esp + 0x24]
mov eax, dword [eax]
cmp ecx, edi
je 0x4224c6
dec ecx
mov dword [esp + 0x24], ecx
jne 0x4224c6
mov dword [esp + 0x20], edi
lea edx, [esp + 0x28]
push edx
push eax
call fcn.004228a0
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, edi
jne 0x422493
mov eax, dword [esp + 0x38]
cmp eax, 1
jne 0x42275c
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x28]
inc eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x60], eax
dec eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], eax
call fcn.004315e0
mov ecx, dword [eax]
mov edx, dword [esp + 0x2c4]
mov eax, dword [esp + 0x38]
cmp eax, edi
mov dword [edx], ecx
je 0x422526
dec eax
mov dword [esp + 0x38], eax
jne 0x422526
mov dword [esp + 0x34], edi
cmp eax, edi
mov byte [esp + 0x2b8], 0
je 0x42271e
cmp eax, edi
je 0x42271a
dec eax
jne 0x422536
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edi
jmp 0x42271e
mov eax, dword [esp + 0x38]
mov byte [esp + 0x2b8], 0
test eax, eax
je 0x42256f
lea ecx, [esp + 0x28]
call fcn.00430690
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x42255e
lea ecx, [esp + 0x28]
call fcn.004315a0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2b8], 0xffffffff
test eax, eax
je 0x42259c
lea ecx, [esp + 0x14]
call fcn.00430690
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x42258b
lea ecx, [esp + 0x14]
call fcn.004315a0
jmp 0x4227ef
mov eax, dword [esp + 0x38]
mov byte [esp + 0x2b8], 0
test eax, eax
je 0x4225cb
lea ecx, [esp + 0x28]
call fcn.00430690
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x4225ba
lea ecx, [esp + 0x28]
call fcn.004315a0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2b8], 0xffffffff
test eax, eax
je 0x4225f8
lea ecx, [esp + 0x14]
call fcn.00430690
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4225e7
lea ecx, [esp + 0x14]
call fcn.004315a0
jmp 0x4227ef
mov eax, dword [esp + 0x38]
mov byte [esp + 0x2b8], 0
test eax, eax
je 0x422627
lea ecx, [esp + 0x28]
call fcn.00430690
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x422616
lea ecx, [esp + 0x28]
call fcn.004315a0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2b8], 0xffffffff
test eax, eax
je 0x422654
lea ecx, [esp + 0x14]
call fcn.00430690
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x422643
lea ecx, [esp + 0x14]
call fcn.004315a0
jmp 0x4227ef
mov eax, dword [esp + 0x38]
mov byte [esp + 0x2b8], 0
test eax, eax
je 0x422683
lea ecx, [esp + 0x28]
call fcn.00430690
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x422672
lea ecx, [esp + 0x28]
call fcn.004315a0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2b8], 0xffffffff
test eax, eax
je 0x4226b0
lea ecx, [esp + 0x14]
call fcn.00430690
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x42269f
lea ecx, [esp + 0x14]
call fcn.004315a0
jmp 0x4227ef
mov eax, dword [esp + 0x38]
mov byte [esp + 0x2b8], 0
test eax, eax
je 0x4226df
lea ecx, [esp + 0x28]
call fcn.00430690
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x4226ce
lea ecx, [esp + 0x28]
call fcn.004315a0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2b8], 0xffffffff
test eax, eax
je 0x42270c
lea ecx, [esp + 0x14]
call fcn.00430690
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4226fb
lea ecx, [esp + 0x14]
call fcn.004315a0
jmp 0x4227ef
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x28]
call fcn.004315a0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2b8], 0xffffffff
cmp eax, edi
je 0x422749
dec eax
jne 0x422741
mov dword [esp + 0x20], edi
cmp eax, edi
jne 0x42273a
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x14]
call fcn.004315a0
mov eax, 1
jmp 0x4227f1
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c4]
xor ecx, ecx
cmp eax, ecx
mov dword [edx], ecx
je 0x42277e
dec eax
jne 0x422776
mov dword [esp + 0x34], ecx
cmp eax, ecx
jne 0x42276f
mov dword [esp + 0x38], eax
cmp esi, ecx
jbe 0x422797
mov eax, dword [esp + 0x2c]
dec esi
mov ecx, dword [eax + esi*4]
push ecx
call fcn.0044bf22
add esp, 4
test esi, esi
ja 0x422782
mov edx, dword [esp + 0x2c]
push edx
call fcn.0044bf22
mov eax, dword [esp + 0x28]
xor edi, edi
add esp, 4
cmp eax, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
je 0x4227c5
dec eax
jne 0x4227bd
mov dword [esp + 0x20], edi
cmp eax, edi
jne 0x4227b6
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x1c]
cmp esi, edi
jbe 0x4227e2
mov eax, dword [esp + 0x18]
dec esi
mov ecx, dword [eax + esi*4]
push ecx
call fcn.0044bf22
add esp, 4
cmp esi, edi
ja 0x4227cd
mov edx, dword [esp + 0x18]
push edx
call fcn.0044bf22
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2b0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2ac
ret