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

Disassembly:
push 0xffffffffffffffff
push 0x428dca
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x43b060]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43b060]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, dword [esp + 0xa0]
mov edx, 0x3000
mov ebp, dword [esp + 0x94]
mov ebx, dword [esp + 0x9c]
mov edi, dword [esp + 0x98]
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0xa4]
and eax, edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebx
cmp eax, edx
jne 0x405151
push ecx
push esi
push ebx
push edi
push ebp
push dword [esp + 0xa4]
call fcn.004061d6
add esp, 0x18
jmp 0x4056e9
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call fcn.00401dc2
and dword [esp + 0x88], 0
push eax
call fcn.004072bc
or dword [esp + 0x8c], 0xffffffff
pop ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], eax
call fcn.0040142f
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x54]
push eax
call fcn.00405fb3
lea eax, [esp + 0x20]
mov dword [esp + 0x88], 1
push eax
mov ecx, esi
mov byte [esp + 0x1e], 0
call fcn.00401dc2
push eax
mov byte [esp + 0x8c], 2
call fcn.0040692d
pop ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x88], 1
mov esi, eax
call fcn.0040142f
mov edx, dword [esi]
lea eax, [esp + 0x6c]
push eax
push 0x430fce
push str.0123456789_Ee
mov ecx, esi
call dword [edx + 0x1c]
push ebx
mov ecx, edi
call fcn.004077e1
test al, al
jne 0x405234
cmp byte [edi + 4], al
jne 0x4051fb
mov ecx, edi
call fcn.00406907
mov al, byte [edi + 5]
cmp al, byte [esp + 0x77]
jne 0x40520d
mov eax, dword [esp + 0x2c]
mov byte [eax], 0x2b
jmp 0x40522a
cmp byte [edi + 4], 0
jne 0x40521a
mov ecx, edi
call fcn.00406907
mov al, byte [edi + 5]
cmp al, byte [esp + 0x76]
jne 0x405234
mov eax, dword [esp + 0x2c]
mov byte [eax], 0x2d
mov ecx, edi
lea ebp, [eax + 1]
call fcn.004068e3
xor ecx, ecx
lea eax, [esp + 0x54]
cmp dword [esp + 0x68], 0x10
mov esi, ecx
mov byte [esp + 0x19], cl
cmovae eax, dword [esp + 0x54]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], ecx
mov al, byte [eax]
cmp al, 0x7f
je 0x405414
test al, al
jle 0x405414
cmp dword [esp + 0x64], ecx
jne 0x405274
mov byte [esp + 0x1b], cl
jmp 0x405283
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov byte [esp + 0x1b], al
xor ecx, ecx
push ecx
mov dword [esp + 0x50], ecx
mov byte [esp + 0x40], cl
lea ecx, [esp + 0x40]
push 1
mov dword [esp + 0x58], 0xf
call fcn.00406051
push ebx
push edi
mov byte [esp + 0x90], 3
xor esi, esi
call fcn.00407557
pop ecx
pop ecx
test al, al
je 0x4053a9
cmp byte [edi + 4], 0
jne 0x4052c7
mov ecx, edi
call fcn.00406907
mov al, byte [edi + 5]
mov byte [esp + 0x34], al
lea eax, [esp + 0x6c]
push dword [esp + 0x34]
push eax
call fcn.0040756e
pop ecx
pop ecx
cmp eax, 0xa
jae 0x405335
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x19], 1
cmp ecx, 0x24
jl 0x4052f7
inc dword [esp + 0x1c]
jmp 0x40530e
test eax, eax
jne 0x4052ff
test ecx, ecx
je 0x40530e
mov al, byte [eax + str.0123456789_Ee]
mov byte [ebp], al
inc ebp
inc ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x3c]
mov edx, dword [esp + 0x3c]
cmp ecx, 0x10
cmovae eax, edx
cmp byte [eax + esi], 0x7f
je 0x405374
cmp ecx, 0x10
lea eax, [esp + 0x3c]
cmovae eax, edx
inc byte [eax + esi]
jmp 0x405374
cmp dword [esp + 0x50], 0x10
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
cmp byte [eax + esi], 0
je 0x40538c
cmp byte [esp + 0x1b], 0
je 0x40538c
cmp byte [edi + 4], 0
jne 0x40535d
mov ecx, edi
call fcn.00406907
mov al, byte [edi + 5]
cmp al, byte [esp + 0x1b]
jne 0x40538c
push 0
push 1
lea ecx, [esp + 0x44]
call fcn.00405ff0
inc esi
mov ecx, edi
call fcn.004068e3
push ebx
push edi
call fcn.00407557
pop ecx
pop ecx
test al, al
jne 0x4052ba
mov edx, dword [esp + 0x50]
test esi, esi
je 0x4053ad
cmp edx, 0x10
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
cmp byte [eax + esi], 0
jle 0x4053f4
inc esi
jmp 0x4053ad
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x20]
test esi, esi
je 0x4053f9
mov cl, byte [eax]
cmp cl, 0x7f
je 0x4053f9
dec esi
je 0x4053d0
cmp edx, 0x10
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
cmp cl, byte [eax + esi]
jne 0x4053f4
test esi, esi
jne 0x4053e4
cmp edx, 0x10
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
cmp cl, byte [eax]
jl 0x4053f4
mov eax, dword [esp + 0x20]
inc eax
cmp byte [eax], 0
jle 0x4053ad
mov dword [esp + 0x20], eax
jmp 0x4053b1
mov byte [esp + 0x1a], 1
push 0
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x90], 1
call fcn.0040326b
mov esi, dword [esp + 0x24]
jmp 0x40547f
push ebx
push edi
call fcn.00407557
pop ecx
pop ecx
test al, al
je 0x40548f
cmp byte [edi + 4], 0
jne 0x40542e
mov ecx, edi
call fcn.00406907
movzx eax, byte [edi + 5]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.0040756e
pop ecx
pop ecx
cmp eax, 0xa
jae 0x40547b
cmp esi, 0x24
jl 0x40544f
inc dword [esp + 0x1c]
jmp 0x405462
test eax, eax
jne 0x405457
test esi, esi
je 0x405462
mov al, byte [eax + str.0123456789_Ee]
mov byte [ebp], al
inc ebp
inc esi
mov ecx, edi
mov byte [esp + 0x19], 1
call fcn.004068e3
push ebx
push edi
call fcn.00407557
pop ecx
pop ecx
test al, al
jne 0x405421
mov dword [esp + 0x24], esi
cmp byte [esp + 0x19], 0
je 0x40548f
test esi, esi
jne 0x40548f
mov byte [ebp], 0x30
inc ebp
push ebx
push edi
call fcn.00407557
pop ecx
pop ecx
test al, al
je 0x4054d1
cmp byte [edi + 4], 0
jne 0x4054a9
mov ecx, edi
call fcn.00406907
mov ecx, dword [esp + 0x28]
mov bl, byte [edi + 5]
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp bl, al
jne 0x4054cd
call fcn.00408911
mov ecx, edi
mov eax, dword [eax]
mov al, byte [eax]
mov byte [ebp], al
inc ebp
call fcn.004068e3
mov ebx, dword [esp + 0x30]
test esi, esi
jne 0x405575
push ebx
push edi
call fcn.00407557
pop ecx
pop ecx
test al, al
je 0x405522
mov esi, dword [esp + 0x1c]
cmp byte [edi + 4], 0
jne 0x4054f7
mov ecx, edi
call fcn.00406907
mov al, byte [edi + 5]
cmp al, byte [esp + 0x6c]
jne 0x40551a
mov ecx, edi
mov byte [esp + 0x19], 1
dec esi
call fcn.004068e3
push ebx
push edi
call fcn.00407557
pop ecx
pop ecx
test al, al
jne 0x4054ea
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
test eax, eax
jns 0x405575
mov byte [ebp], 0x30
inc ebp
inc eax
mov dword [esp + 0x1c], eax
jmp 0x405575
cmp byte [edi + 4], 0
jne 0x405543
mov ecx, edi
call fcn.00406907
movzx eax, byte [edi + 5]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.0040756e
pop ecx
pop ecx
cmp eax, 0xa
jae 0x405582
cmp esi, 0x24
jge 0x405569
mov al, byte [eax + str.0123456789_Ee]
mov byte [ebp], al
inc ebp
inc esi
mov ecx, edi
mov byte [esp + 0x19], 1
call fcn.004068e3
push ebx
push edi
call fcn.00407557
pop ecx
pop ecx
test al, al
jne 0x405536
mov al, byte [esp + 0x19]
test al, al
je 0x4056c5
push ebx
push edi
call fcn.00407557
pop ecx
pop ecx
test al, al
je 0x4056c1
cmp byte [edi + 4], 0
jne 0x4055ac
mov ecx, edi
call fcn.00406907
mov al, byte [edi + 5]
cmp al, byte [esp + 0x79]
je 0x4055cf
cmp byte [edi + 4], 0
jne 0x4055c2
mov ecx, edi
call fcn.00406907
mov al, byte [edi + 5]
cmp al, byte [esp + 0x78]
jne 0x4056c1
mov byte [ebp], 0x65
mov ecx, edi
inc ebp
call fcn.004068e3
push ebx
mov ecx, edi
mov byte [esp + 0x1d], 0
xor esi, esi
call fcn.004077e1
test al, al
jne 0x40562b
cmp byte [edi + 4], al
jne 0x4055fa
mov ecx, edi
call fcn.00406907
mov al, byte [edi + 5]
cmp al, byte [esp + 0x77]
jne 0x405609
mov byte [ebp], 0x2b
jmp 0x405623
cmp byte [edi + 4], 0
jne 0x405616
mov ecx, edi
call fcn.00406907
mov al, byte [edi + 5]
cmp al, byte [esp + 0x76]
jne 0x40562b
mov byte [ebp], 0x2d
mov ecx, edi
inc ebp
call fcn.004068e3
push ebx
push edi
call fcn.00407557
pop ecx
pop ecx
test al, al
je 0x405673
cmp byte [edi + 4], 0
jne 0x405645
mov ecx, edi
call fcn.00406907
mov al, byte [edi + 5]
cmp al, byte [esp + 0x6c]
jne 0x405667
mov ecx, edi
mov byte [esp + 0x19], 1
call fcn.004068e3
push ebx
push edi
call fcn.00407557
pop ecx
pop ecx
test al, al
jne 0x405638
cmp byte [esp + 0x19], 0
je 0x405673
mov byte [ebp], 0x30
inc ebp
push ebx
push edi
call fcn.00407557
pop ecx
pop ecx
test al, al
je 0x4056c1
cmp byte [edi + 4], 0
jne 0x40568d
mov ecx, edi
call fcn.00406907
movzx eax, byte [edi + 5]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.0040756e
pop ecx
pop ecx
cmp eax, 0xa
jae 0x4056c1
cmp esi, 8
jge 0x4056b3
mov al, byte [eax + str.0123456789_Ee]
mov byte [ebp], al
inc ebp
inc esi
mov ecx, edi
mov byte [esp + 0x19], 1
call fcn.004068e3
jmp 0x405673
mov al, byte [esp + 0x19]
cmp byte [esp + 0x1a], 0
jne 0x4056d0
test al, al
jne 0x4056d4
mov ebp, dword [esp + 0x2c]
push 0
push 1
lea ecx, [esp + 0x5c]
mov byte [ebp], 0
call fcn.0040326b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00407d71
add esp, 0x78
ret