Function at 0x40c720
Capabilities:
Check os version
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a669e
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x4ce208]
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 - 0x160], edi
mov dword [ebp - 0x17c], 0
call fcn.0040c480
push 0
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x30]
mov dword [ebp - 4], 0
call fcn.0040c480
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], 1
jb 0x40c798
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x16c]
call fcn.0040af80
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x40c7e2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c7d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cbaf
push edx
push ecx
call fcn.00443d7a
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 - 0x16c]
mov byte [ebp - 4], 4
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x40c814
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x40c82c
call fcn.00403e30
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x40cbb4
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [ebp - 0x17c], 1
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x170], esi
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x158], eax
lea edx, [eax + 9]
test edx, edx
js 0x40cbbe
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x40c889
push edx
lea ecx, [ebp - 0x170]
call fcn.00405090
mov esi, dword [ebp - 0x170]
mov eax, dword [ebp - 0x158]
push eax
push dword [ebp - 0x168]
push eax
push esi
call fcn.00403ce0
mov eax, dword [ebp - 0x158]
add esp, 0x10
lea ecx, [esi + eax*2]
test ecx, ecx
jne 0x40c8bf
call fcn.0045b92d
mov dword [eax], 0x16
call fcn.0045b806
jmp 0x40c8d3
movups xmm0, xmmword [str.DumpUper]
movups xmmword [ecx], xmm0
mov ax, word [0x4adf94]
mov word [ecx + 0x10], ax
mov eax, dword [ebp - 0x158]
add eax, 9
cmp eax, dword [esi - 8]
jg 0x40cbbe
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], eax
or edi, 0xffffffff
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x174], ecx
cmp edx, ecx
je 0x40c998
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x158]
jl 0x40c97f
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x40c979
push edx
call fcn.00403c80
mov dword [ebp - 0x164], eax
add esp, 4
mov eax, dword [ebp - 0x180]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c960
mov esi, dword [ebp - 0x174]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov esi, dword [ebp - 0x158]
mov eax, dword [ebp - 0x164]
mov edx, dword [ebp - 0x168]
add eax, 0x10
mov dword [esi], eax
jmp 0x40c99a
mov eax, dword [ebp - 0x158]
push dword [esi - 0xc]
mov ecx, eax
push esi
call fcn.004053e0
mov edx, dword [ebp - 0x168]
mov esi, dword [ebp - 0x158]
jmp 0x40c99a
mov esi, eax
mov byte [ebp - 4], 3
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c9b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [ebp - 0x160]
lea eax, [ebp - 0x178]
push eax
mov byte [esi], 0
call fcn.0041ab90
add esp, 4
mov ecx, dword [eax]
mov byte [ebp - 4], 5
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edx, dword [ebp - 0x174]
mov byte [ebp - 0x159], al
mov byte [ebp - 4], 3
mov dword [ebp - 0x164], edx
test edx, edx
je 0x40ca1e
mov ecx, edi
lock xadd dword [edx + 4], ecx
jne 0x40ca1e
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov ecx, dword [ebp - 0x164]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x40ca1e
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x159], 0
je 0x40cac7
lea eax, [ebp - 0x178]
push eax
call fcn.0041ab90
add esp, 4
mov eax, dword [eax]
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 6
mov dword [ebp - 0x164], eax
call fcn.0040b500
mov edi, eax
push str.report_dir:
push edi
mov byte [ebp - 4], 7
call fcn.00401870
mov edx, dword [ebp - 0x158]
mov esi, 0x4ad6b0
mov edx, dword [edx]
test edx, edx
cmovne esi, edx
push esi
push edi
call fcn.00401870
mov ecx, dword [ebp - 0x164]
add esp, 0x10
mov eax, dword [ecx]
push edi
call dword [eax + 8]
lea ecx, [ebp - 0x218]
call fcn.004033d0
mov esi, dword [ebp - 0x174]
or edi, 0xffffffff
test esi, esi
je 0x40cac1
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40cac1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40cac1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x160]
lea eax, [ebp - 0x154]
mov dword [ebp - 0x154], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40caf7
cmp dword [ebp - 0x144], 2
jne 0x40caf7
cmp dword [ebp - 0x150], 6
jb 0x40caf7
mov byte [esi], 1
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 8], 0
test eax, eax
je 0x40cb39
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
test eax, eax
je 0x40cb39
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], eax
mov esi, 1
jmp 0x40cb3b
xor esi, esi
mov edx, dword [ebp - 0x16c]
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x40cb5a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40cb90
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cb86
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cbc8
push edx
push ecx
call fcn.00443d7a
add esp, 8
mov eax, esi
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.0044418a
mov esp, ebp
pop ebp
ret 0xc
call fcn.0045b816
push 0x80004005
call fcn.00403b20
push 0x80070057
call fcn.00403b20
call fcn.0045b816
int3