Function at 0x406f50
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x439826
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x44d660]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44d660]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xc4]
push 0xffffffffffffffff
xor ebx, ebx
push ebx
mov ecx, ebp
call fcn.00405c50
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x407022
call fcn.0040ab03
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406fcf
push 0x80004005
call fcn.00401160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0xbc], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x18]
push str.Could_not_get_OS_version.__err_lx_
push ecx
call fcn.004059d0
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
push edx
call fcn.00405810
add eax, 0x10
add esp, 0x10
mov dword [esp + 0x18], eax
push 0x446108
lea eax, [esp + 0x1c]
push eax
call fcn.00425900
cmp dword [esp + 0x20], 5
push ebp
jae 0x40703f
cmp dword [esp + 0x30], 2
jne 0x407038
call fcn.00406750
jmp 0x407044
call fcn.00406c90
jmp 0x407044
call fcn.00406300
mov eax, dword [ebp + 8]
add esp, 4
cmp eax, ebx
jle 0x40719d
mov dword [esp + 0x14], ebx
test ebx, ebx
jl 0x4071c5
cmp ebx, eax
jge 0x4071c5
mov esi, dword [ebp + 4]
add esi, dword [esp + 0x14]
cmp dword [esp + 0xc8], 0
je 0x4070b2
mov eax, dword [esi]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4070ab
push 1
push ebx
mov ecx, ebp
call fcn.00406020
sub ebx, 1
sub dword [esp + 0x14], 0x18
jmp 0x40718a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 8]
cmp dword [ecx - 0xc], 0
lea edi, [esi + 8]
jne 0x4070c9
lea edx, [esi + 4]
push edx
mov ecx, edi
call fcn.00405950
mov eax, dword [esi + 0x10]
add esi, 0x10
cmp dword [eax - 0xc], 0
jne 0x40718a
push edi
mov ecx, esi
call fcn.00405950
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jge 0x4070ee
or edi, 0xffffffff
jmp 0x407109
push 0x43d9a0
push eax
call fcn.00426315
add esp, 8
test eax, eax
jne 0x407105
or edi, 0xffffffff
jmp 0x407109
sub eax, dword [esi]
mov edi, eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jge 0x407116
or eax, 0xffffffff
jmp 0x40712f
push 0x43d99c
push eax
call fcn.00426315
add esp, 8
test eax, eax
jne 0x40712d
or eax, 0xffffffff
jmp 0x40712f
sub eax, dword [esi]
test edi, edi
jle 0x40718a
mov ecx, dword [esi]
mov ecx, dword [ecx - 0xc]
add ecx, 0xffffffff
cmp eax, ecx
jne 0x40718a
push edi
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00405f20
push eax
mov ecx, esi
mov dword [esp + 0xc0], 1
call fcn.00405950
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0xbc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40718a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add dword [esp + 0x14], 0x18
add ebx, 1
cmp ebx, eax
jl 0x407056
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00425494
add esp, 0xac
ret
jmp fcn.0040a3c6