Function at 0x100640f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1018d060
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x101ebb68]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x101ebb68]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov eax, dword [esi]
push eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.MSVCR100.dll___RTtypeid]
add esp, 4
push eax
mov ecx, 0x101f3f1c
call dword [sym.imp.MSVCR100.dll_public:_bool___thiscall_type_info::operator_class_type_info_const__const]
test al, al
je 0x100648e2
push esi
lea esi, [esp + 0x4c]
call fcn.100661f0
add esp, 4
xor ebx, ebx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0xf4], 2
call fcn.10064b40
add esp, 4
lea edi, [esp + 0x1c]
mov byte [esp + 0xf0], 3
call fcn.1000f990
mov byte [esp + 0xf0], 2
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x100641ea
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100641ea
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100641ea
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x1c]
add ecx, 8
mov dword [esp + 0x58], ecx
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGRecMutex::lock_void_const]
mov byte [esp + 0x5c], 1
push 0x30
mov byte [esp + 0xf4], 4
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, ebx
je 0x1006424e
mov byte [esp + 0xf0], 6
lea ecx, [esi + 4]
mov dword [esi], vtable.TransferIO::SDFileAllModules.0
call fcn.10145a60
lea eax, [esi + 0x18]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 8], eax
mov dword [esi + 0x14], 4
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov ebx, esi
xor esi, esi
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0xf4], 4
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.100650d0
mov byte [esp + 0xf0], 7
mov eax, dword [esp + 0x48]
mov ebx, dword [eax + 0xc]
lea ebx, [ebx]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
lea eax, [ecx + eax*4]
cmp ebx, eax
je 0x100646bd
push 0x50
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov edi, 0x10
cmp eax, esi
je 0x100642eb
mov edx, 0xf
mov dword [eax + 0x14], edx
mov byte [eax], 0
lea ecx, [eax + 0x20]
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x10], esi
mov byte [ecx], 0
mov dword [eax + 0x10], esi
cmp dword [eax + 0x14], edi
jb 0x100642c8
mov edx, dword [eax]
jmp 0x100642ca
mov edx, eax
mov byte [edx], 0
mov dword [eax + 0x1c], esi
mov dword [ecx + 0x10], esi
cmp dword [ecx + 0x14], edi
jb 0x100642da
mov ecx, dword [ecx]
mov byte [ecx], 0
mov dword [eax + 0x40], esi
mov dword [eax + 0x44], esi
mov dword [eax + 0x48], esi
mov dword [eax + 0x4c], esi
jmp 0x100642ed
xor eax, eax
push eax
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.100659a0
mov byte [esp + 0xf0], 8
push 5
push str.root_
lea ecx, [esp + 0x94]
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], esi
mov byte [esp + 0x94], 0
call fcn.1000c100
mov byte [esp + 0xf0], 9
mov eax, dword [ebx]
mov eax, dword [eax + 8]
cmp dword [eax + 0x14], edi
jb 0x10064349
mov eax, dword [eax]
push eax
call fcn.1003a670
add esp, 4
push eax
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0xb0]
push ecx
call fcn.1003b1c0
add esp, 0xc
mov byte [esp + 0xf0], 0xa
mov edi, dword [esp + 0x24]
push eax
mov ecx, edi
call fcn.1000b240
cmp dword [esp + 0xbc], 0x10
jb 0x1006439a
mov edx, dword [esp + 0xa8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [esp + 0xa0], 0x10
mov dword [esp + 0xbc], 0xf
mov dword [esp + 0xb8], esi
mov byte [esp + 0xa8], 0
jb 0x100643cf
mov eax, dword [esp + 0x8c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], esi
mov byte [esp + 0x70], 0
mov byte [esp + 0xf0], 0xb
mov eax, dword [ebx]
mov eax, dword [eax + 0x20]
dec eax
cmp eax, 6
ja case.default.0x100643fd
jmp dword [eax*4 + 0x10064934]
push 0xa
push str.Default_SD
lea ecx, [esp + 0x78]
mov dword [edi + 0x1c], esi
call fcn.1000c100
jmp case.default.0x100643fd
push 0xb
push str.External_SD
lea ecx, [esp + 0x78]
mov dword [edi + 0x1c], 1
call fcn.1000c100
jmp case.default.0x100643fd
push 8
push str.Internal
lea ecx, [esp + 0x78]
mov dword [edi + 0x1c], 2
call fcn.1000c100
jmp case.default.0x100643fd
push 5
push str.Video
lea ecx, [esp + 0x78]
mov dword [edi + 0x1c], 3
call fcn.1000c100
jmp case.default.0x100643fd
push 5
push 0x101a7094
lea ecx, [esp + 0x78]
mov dword [edi + 0x1c], 5
call fcn.1000c100
jmp case.default.0x100643fd
push 5
push str.Music
lea ecx, [esp + 0x78]
mov dword [edi + 0x1c], 4
call fcn.1000c100
jmp case.default.0x100643fd
push 5
push 0x101a70d8
lea ecx, [esp + 0x78]
call fcn.1000c100
mov dword [edi + 0x1c], 6
mov eax, dword [ebx]
mov eax, dword [eax + 8]
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x20]
push eax
call fcn.1000bd90
mov eax, dword [ebx]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov esi, dword [esp + 0x14]
mov dword [edi + 0x40], ecx
mov dword [edi + 0x44], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [edi + 0x48], ecx
mov dword [edi + 0x4c], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jge 0x100644fa
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + eax*4]
inc eax
mov dword [esi + 0xc], eax
mov esi, ecx
jmp 0x10064521
mov eax, dword [esi + 0x14]
cmp ecx, eax
jne 0x1006450b
inc eax
push eax
lea ecx, [esi + 8]
call fcn.10125e20
inc dword [esi + 0x10]
call fcn.100660c0
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov dword [ecx + edx*4], eax
inc dword [esi + 0xc]
mov esi, eax
mov eax, dword [ebx]
mov edx, dword [eax + 8]
or dword [esi + 0x28], 2
cmp dword [esi + 8], 0x101eb21c
mov dword [esp + 0x10], edx
jne 0x1006455e
push 0x1c
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x10064559
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov byte [eax], 0
jmp 0x1006455b
xor eax, eax
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push 0
push eax
call fcn.1000bd90
mov eax, dword [ebx]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
or dword [esi + 0x28], 8
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], ecx
mov eax, dword [ebx]
mov ecx, dword [eax + 0x20]
mov eax, dword [esi + 0x28]
or eax, 1
mov dword [esi + 0x28], eax
mov dword [esi + 0x20], ecx
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
or eax, 4
mov dword [esi + 0x28], eax
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], ecx
cmp dword [edi + 0x34], 0x10
jb 0x100645b1
mov eax, dword [edi + 0x20]
jmp 0x100645b4
lea eax, [edi + 0x20]
cmp dword [esp + 0x84], 0x10
mov ecx, dword [esp + 0x70]
jae 0x100645c6
lea ecx, [esp + 0x70]
mov edx, dword [edi + 0x4c]
push eax
mov eax, dword [edi + 0x48]
push edx
mov edx, dword [edi + 0x44]
push eax
mov eax, dword [edi + 0x40]
push edx
push eax
push ecx
push str.File_Module_Info_:_Name___s__TotalMem___I64d__AvaliableMem___I64d__ModulePath___s
lea esi, [esp + 0xe0]
call fcn.1000c270
add esp, 0x1c
mov byte [esp + 0xf0], 0xd
cmp dword [eax + 0x14], 0x10
jb 0x100645fc
mov eax, dword [eax]
push str.FILE_MODULE_OBTAIN_IMPL
push eax
call dword [sym.imp.MGCore.dll_public:_static_class_MGDecorateLog____cdecl_MGSingleton_class_MGDecorateLog__0_::getInstance_void_]
mov ecx, eax
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGDecorateLog::trace_char_const___char_const__]
mov esi, 0x10
mov byte [esp + 0xf0], 0xb
cmp dword [esp + 0xd8], esi
jb 0x10064637
mov ecx, dword [esp + 0xc4]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea ecx, [esp + 0x24]
lea edi, [esp + 0x30]
call fcn.10032ab0
cmp dword [esp + 0x84], esi
jb 0x1006465b
mov edx, dword [esp + 0x70]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [esp + 0xf0], 7
mov esi, dword [esp + 0x28]
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
test esi, esi
je 0x100646af
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100646af
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100646af
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov eax, dword [esp + 0x48]
add ebx, 4
xor esi, esi
jmp 0x10064280
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
cmp ebx, esi
je 0x100646f4
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
cmp ecx, esi
je 0x100646f0
lea edi, [ecx + 1]
mov ebx, edx
mov eax, ecx
lock cmpxchg dword [ebx], edi
cmp eax, ecx
je 0x1006491a
mov ecx, dword [edx]
cmp ecx, esi
jne 0x100646d7
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx + 4]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov dword [ecx + 4], eax
mov dword [ecx], edx
cmp edi, esi
je 0x10064735
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10064735
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10064735
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov edi, dword [esp + 0x1c]
call fcn.1001ed80
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x60]
call fcn.10033560
push eax
lea esi, [esp + 0x54]
mov byte [esp + 0xf4], 0xe
call fcn.10065090
add esp, 4
mov byte [esp + 0xf0], 0x10
mov eax, dword [esp + 0x64]
xor edi, edi
cmp eax, edi
je 0x1006479d
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1006479d
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1006479d
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x50]
cmp ecx, edi
je 0x100647b0
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0x30]
push edx
call eax
mov byte [esp + 0xf0], 7
mov esi, dword [esp + 0x54]
cmp esi, edi
je 0x100647e9
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100647e9
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100647e9
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov byte [esp + 0xf0], 4
cmp ebx, edi
je 0x1006481e
lea ecx, [ebx + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1006481e
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, ebx
call edx
lea eax, [ebx + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1006481e
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
mov byte [esp + 0xf0], 2
mov ecx, dword [esp + 0x58]
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGRecMutex::unlock_void_const]
mov byte [esp + 0xf0], 1
mov esi, dword [esp + 0x20]
cmp esi, edi
je 0x10064869
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10064869
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10064869
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov byte [esp + 0xf0], 0
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x1006489a
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
push ecx
call fcn.10044f00
mov edx, dword [esp + 0x34]
add esp, 4
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edi, edi
mov dword [esp + 0xf0], 0xffffffff
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
cmp esi, edi
je 0x100648e2
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100648e2
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100648e2
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 0
call edx
mov eax, 8
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.10178946
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push ecx
lea esi, [esp + 0x44]
call fcn.10044ae0
xor esi, esi
jmp 0x100646f4