Function at 0x40c5f0
Capabilities:
Check os version
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbceb
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x516240]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x168], edi
mov dword [ebp - 0x174], edi
mov dword [ebp - 0x16c], 0
call fcn.00404e30
mov ecx, eax
test ecx, ecx
je 0x40c950
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 4], eax
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.0040d900
push 0
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x30]
mov byte [ebp - 4], 1
call fcn.0040d900
push 0
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 2
jb 0x40c6aa
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x15c]
call fcn.0040c0c0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x40c6f4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c6ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c95a
push edx
push ecx
call fcn.0044eeaa
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x15c]
mov byte [ebp - 4], 5
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x40c726
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x40c73e
call fcn.00404e30
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x40c95f
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [ebp - 0x16c], 1
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x164], esi
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x158], eax
lea edx, [eax + 9]
test edx, edx
js 0x40c969
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x40c79b
push edx
lea ecx, [ebp - 0x164]
call fcn.00406090
mov esi, dword [ebp - 0x164]
mov eax, dword [ebp - 0x158]
push eax
push dword [ebp - 0x160]
push eax
push esi
call fcn.00404ce0
mov eax, dword [ebp - 0x158]
add esp, 0x10
lea ecx, [esi + eax*2]
test ecx, ecx
jne 0x40c7d1
call fcn.0049001d
mov dword [eax], 0x16
call fcn.0048fef6
jmp 0x40c7e5
movups xmm0, xmmword [str.DumpUper]
movups xmmword [ecx], xmm0
mov ax, word [0x4e9d40]
mov word [ecx + 0x10], ax
mov eax, dword [ebp - 0x158]
add eax, 9
cmp eax, dword [esi - 8]
jg 0x40c969
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea edx, [esi - 0x10]
mov ecx, dword [edi + 4]
lea eax, [edi + 4]
sub ecx, 0x10
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x170], ecx
cmp edx, ecx
je 0x40c885
cmp dword [ecx + 0xc], 0
lea edx, [ecx + 0xc]
mov dword [ebp - 0x160], edx
lea edx, [esi - 0x10]
jl 0x40c874
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x40c871
push edx
call fcn.00404c80
mov dword [ebp - 0x168], eax
add esp, 4
mov eax, dword [ebp - 0x160]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c863
mov esi, dword [ebp - 0x170]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x168]
add eax, 0x10
mov dword [edi + 4], eax
jmp 0x40c87f
lea eax, [edi + 4]
push dword [esi - 0xc]
mov ecx, eax
push esi
call fcn.004063e0
mov edx, dword [ebp - 0x158]
or esi, 0xffffffff
mov byte [ebp - 4], 4
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c8a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x154]
mov byte [edi], 0
push eax
mov dword [ebp - 0x154], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40c8de
cmp dword [ebp - 0x144], 2
jne 0x40c8de
cmp dword [ebp - 0x150], 6
jb 0x40c8de
mov byte [edi], 1
mov edx, dword [ebp - 0x15c]
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40c8fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40c933
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c929
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c973
push edx
push ecx
call fcn.0044eeaa
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044f2ba
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404b20
call fcn.0048ff06
push 0x80004005
call fcn.00404b20
push 0x80070057
call fcn.00404b20
call fcn.0048ff06
int3