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

Disassembly:
push 0xffffffffffffffff
push 0x428e1a
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x43c060]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43c060]
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 0x405192
push ecx
push esi
push ebx
push edi
push ebp
push dword [esp + 0xa4]
call fcn.00406217
add esp, 0x18
jmp 0x40572a
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call fcn.00401dc2
and dword [esp + 0x88], 0
push eax
call fcn.004072fd
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.00405ff4
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.0040696e
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 0x43100e
push str.0123456789_Ee
mov ecx, esi
call dword [edx + 0x1c]
push ebx
mov ecx, edi
call fcn.00407822
test al, al
jne 0x405275
cmp byte [edi + 4], al
jne 0x40523c
mov ecx, edi
call fcn.00406948
mov al, byte [edi + 5]
cmp al, byte [esp + 0x77]
jne 0x40524e
mov eax, dword [esp + 0x2c]
mov byte [eax], 0x2b
jmp 0x40526b
cmp byte [edi + 4], 0
jne 0x40525b
mov ecx, edi
call fcn.00406948
mov al, byte [edi + 5]
cmp al, byte [esp + 0x76]
jne 0x405275
mov eax, dword [esp + 0x2c]
mov byte [eax], 0x2d
mov ecx, edi
lea ebp, [eax + 1]
call fcn.00406924
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 0x405455
test al, al
jle 0x405455
cmp dword [esp + 0x64], ecx
jne 0x4052b5
mov byte [esp + 0x1b], cl
jmp 0x4052c4
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.00406092
push ebx
push edi
mov byte [esp + 0x90], 3
xor esi, esi
call fcn.00407598
pop ecx
pop ecx
test al, al
je 0x4053ea
cmp byte [edi + 4], 0
jne 0x405308
mov ecx, edi
call fcn.00406948
mov al, byte [edi + 5]
mov byte [esp + 0x34], al
lea eax, [esp + 0x6c]
push dword [esp + 0x34]
push eax
call fcn.004075af
pop ecx
pop ecx
cmp eax, 0xa
jae 0x405376
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x19], 1
cmp ecx, 0x24
jl 0x405338
inc dword [esp + 0x1c]
jmp 0x40534f
test eax, eax
jne 0x405340
test ecx, ecx
je 0x40534f
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 0x4053b5
cmp ecx, 0x10
lea eax, [esp + 0x3c]
cmovae eax, edx
inc byte [eax + esi]
jmp 0x4053b5
cmp dword [esp + 0x50], 0x10
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
cmp byte [eax + esi], 0
je 0x4053cd
cmp byte [esp + 0x1b], 0
je 0x4053cd
cmp byte [edi + 4], 0
jne 0x40539e
mov ecx, edi
call fcn.00406948
mov al, byte [edi + 5]
cmp al, byte [esp + 0x1b]
jne 0x4053cd
push 0
push 1
lea ecx, [esp + 0x44]
call fcn.00406031
inc esi
mov ecx, edi
call fcn.00406924
push ebx
push edi
call fcn.00407598
pop ecx
pop ecx
test al, al
jne 0x4052fb
mov edx, dword [esp + 0x50]
test esi, esi
je 0x4053ee
cmp edx, 0x10
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
cmp byte [eax + esi], 0
jle 0x405435
inc esi
jmp 0x4053ee
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x20]
test esi, esi
je 0x40543a
mov cl, byte [eax]
cmp cl, 0x7f
je 0x40543a
dec esi
je 0x405411
cmp edx, 0x10
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
cmp cl, byte [eax + esi]
jne 0x405435
test esi, esi
jne 0x405425
cmp edx, 0x10
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
cmp cl, byte [eax]
jl 0x405435
mov eax, dword [esp + 0x20]
inc eax
cmp byte [eax], 0
jle 0x4053ee
mov dword [esp + 0x20], eax
jmp 0x4053f2
mov byte [esp + 0x1a], 1
push 0
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x90], 1
call fcn.004032ac
mov esi, dword [esp + 0x24]
jmp 0x4054c0
push ebx
push edi
call fcn.00407598
pop ecx
pop ecx
test al, al
je 0x4054d0
cmp byte [edi + 4], 0
jne 0x40546f
mov ecx, edi
call fcn.00406948
movzx eax, byte [edi + 5]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.004075af
pop ecx
pop ecx
cmp eax, 0xa
jae 0x4054bc
cmp esi, 0x24
jl 0x405490
inc dword [esp + 0x1c]
jmp 0x4054a3
test eax, eax
jne 0x405498
test esi, esi
je 0x4054a3
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.00406924
push ebx
push edi
call fcn.00407598
pop ecx
pop ecx
test al, al
jne 0x405462
mov dword [esp + 0x24], esi
cmp byte [esp + 0x19], 0
je 0x4054d0
test esi, esi
jne 0x4054d0
mov byte [ebp], 0x30
inc ebp
push ebx
push edi
call fcn.00407598
pop ecx
pop ecx
test al, al
je 0x405512
cmp byte [edi + 4], 0
jne 0x4054ea
mov ecx, edi
call fcn.00406948
mov ecx, dword [esp + 0x28]
mov bl, byte [edi + 5]
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp bl, al
jne 0x40550e
call fcn.00408951
mov ecx, edi
mov eax, dword [eax]
mov al, byte [eax]
mov byte [ebp], al
inc ebp
call fcn.00406924
mov ebx, dword [esp + 0x30]
test esi, esi
jne 0x4055b6
push ebx
push edi
call fcn.00407598
pop ecx
pop ecx
test al, al
je 0x405563
mov esi, dword [esp + 0x1c]
cmp byte [edi + 4], 0
jne 0x405538
mov ecx, edi
call fcn.00406948
mov al, byte [edi + 5]
cmp al, byte [esp + 0x6c]
jne 0x40555b
mov ecx, edi
mov byte [esp + 0x19], 1
dec esi
call fcn.00406924
push ebx
push edi
call fcn.00407598
pop ecx
pop ecx
test al, al
jne 0x40552b
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
test eax, eax
jns 0x4055b6
mov byte [ebp], 0x30
inc ebp
inc eax
mov dword [esp + 0x1c], eax
jmp 0x4055b6
cmp byte [edi + 4], 0
jne 0x405584
mov ecx, edi
call fcn.00406948
movzx eax, byte [edi + 5]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.004075af
pop ecx
pop ecx
cmp eax, 0xa
jae 0x4055c3
cmp esi, 0x24
jge 0x4055aa
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.00406924
push ebx
push edi
call fcn.00407598
pop ecx
pop ecx
test al, al
jne 0x405577
mov al, byte [esp + 0x19]
test al, al
je 0x405706
push ebx
push edi
call fcn.00407598
pop ecx
pop ecx
test al, al
je 0x405702
cmp byte [edi + 4], 0
jne 0x4055ed
mov ecx, edi
call fcn.00406948
mov al, byte [edi + 5]
cmp al, byte [esp + 0x79]
je 0x405610
cmp byte [edi + 4], 0
jne 0x405603
mov ecx, edi
call fcn.00406948
mov al, byte [edi + 5]
cmp al, byte [esp + 0x78]
jne 0x405702
mov byte [ebp], 0x65
mov ecx, edi
inc ebp
call fcn.00406924
push ebx
mov ecx, edi
mov byte [esp + 0x1d], 0
xor esi, esi
call fcn.00407822
test al, al
jne 0x40566c
cmp byte [edi + 4], al
jne 0x40563b
mov ecx, edi
call fcn.00406948
mov al, byte [edi + 5]
cmp al, byte [esp + 0x77]
jne 0x40564a
mov byte [ebp], 0x2b
jmp 0x405664
cmp byte [edi + 4], 0
jne 0x405657
mov ecx, edi
call fcn.00406948
mov al, byte [edi + 5]
cmp al, byte [esp + 0x76]
jne 0x40566c
mov byte [ebp], 0x2d
mov ecx, edi
inc ebp
call fcn.00406924
push ebx
push edi
call fcn.00407598
pop ecx
pop ecx
test al, al
je 0x4056b4
cmp byte [edi + 4], 0
jne 0x405686
mov ecx, edi
call fcn.00406948
mov al, byte [edi + 5]
cmp al, byte [esp + 0x6c]
jne 0x4056a8
mov ecx, edi
mov byte [esp + 0x19], 1
call fcn.00406924
push ebx
push edi
call fcn.00407598
pop ecx
pop ecx
test al, al
jne 0x405679
cmp byte [esp + 0x19], 0
je 0x4056b4
mov byte [ebp], 0x30
inc ebp
push ebx
push edi
call fcn.00407598
pop ecx
pop ecx
test al, al
je 0x405702
cmp byte [edi + 4], 0
jne 0x4056ce
mov ecx, edi
call fcn.00406948
movzx eax, byte [edi + 5]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.004075af
pop ecx
pop ecx
cmp eax, 0xa
jae 0x405702
cmp esi, 8
jge 0x4056f4
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.00406924
jmp 0x4056b4
mov al, byte [esp + 0x19]
cmp byte [esp + 0x1a], 0
jne 0x405711
test al, al
jne 0x405715
mov ebp, dword [esp + 0x2c]
push 0
push 1
lea ecx, [esp + 0x5c]
mov byte [ebp], 0
call fcn.004032ac
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.00407db1
add esp, 0x78
ret