Function at 0x406370
Capabilities:
Enumerate files on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7ec
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x7e8], eax
push ebx
push esi
push edi
push 0x200
lea eax, [esp + 0x5f4]
push 0
push eax
call fcn.0040bf00
add esp, 0xc
lea eax, [esp + 0x3f0]
push 0x200
push 0
push eax
call fcn.0040bf00
add esp, 0xc
lea eax, [esp + 0x20]
push 0x250
push 0
push eax
call fcn.0040bf00
add esp, 0xc
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x2f0]
mov dword [esp + 0x14], 1
push pe_nt_image_headers32
push 0
push eax
call fcn.0040bf00
add esp, 0xc
mov dword [esp + 0x270], 0x610070
lea eax, [esp + 0x278]
mov dword [esp + 0x274], 0x680074
push 0x78
push 0
push eax
call fcn.0040bf00
add esp, 0xc
lea eax, [esp + 0x5f0]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor eax, eax
lea esi, [esp + 0x5f0]
mov dword [esp + 0x7e6], eax
mov dword [esp + 0x7ea], eax
mov word [esp + 0x7ee], ax
mov dword [esp + 0x18], esi
cmp ax, word [esp + 0x5f0]
je 0x406710
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x4066f2
push 0xff
lea eax, [esp + 0x3f4]
push esi
push eax
call fcn.0040e084
add esp, 0xc
xor eax, eax
mov word [esp + 0x5ee], ax
lea eax, [esp + 0x3f0]
push 0xff
push 0x42e420
push eax
call fcn.0040de40
xor eax, eax
add esp, 0xc
mov word [esp + 0x5ee], ax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3f4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4066f6
push str.c:windows_tgp_config.ini
push str.1C824A27_B431_42E0_80B1_3A9F2354DE48
push 0x42e8e8
push str.netbar
call ebx
push str.c:windows_tgp_config.ini
push str.Dolagame
push str.name
push str.netbar
call ebx
push str.c:windows_tgp_config.ini
push str.99887
push 0x42e8e8
push str.software
call ebx
push str.c:windows_tgp_config.ini
push str.Dolagame.exe
push str.name
push str.software
call ebx
mov esi, dword [esp + 0x10]
test dword [esp + 0x20], 0x10
je 0x4066c8
mov eax, 0x2e
cmp ax, word [esp + 0x4c]
je 0x4066c8
xor eax, eax
mov word [esp + 0x408], ax
lea eax, [esp + 0x4c]
push 0xff
push eax
lea eax, [esp + 0x3f8]
push eax
call fcn.0040de40
add esp, 0xc
xor eax, eax
mov word [esp + 0x5ee], ax
lea eax, [esp + 0x4c]
push str.Wegame
push eax
call fcn.0040df83
add esp, 8
test eax, eax
lea eax, [esp + 0x3f0]
jne 0x4065c0
push str.c:windows_tgp_config.ini
push eax
push str.path
push 0x42e950
call ebx
jmp 0x4066c8
push eax
mov edx, 0xff
lea ecx, [esp + 0x2f4]
call fcn.00408670
add esp, 4
mov byte [esp + 0x3ef], 0
lea eax, [esp + 0x2f0]
push 0xff
push str.dd_launcher.json
push eax
call fcn.0040e200
add esp, 0xc
mov byte [esp + 0x3ef], 0
lea ecx, [esp + 0x2f0]
call fcn.004089e0
mov esi, eax
test esi, esi
je 0x4066c4
mov dword [esp + 0x1c], esi
cmp byte [esi], 0xef
jne 0x406631
cmp byte [esi + 1], 0xbb
jne 0x406631
cmp byte [esi + 2], 0xbf
jne 0x406631
lea eax, [esi + 3]
mov dword [esp + 0x1c], eax
xor edx, edx
lea ecx, [esp + 0x1c]
call fcn.00408f30
push esi
mov edi, eax
call fcn.0041501c
add esp, 4
test edi, edi
je 0x4066c4
cmp dword [edi + 4], 4
jne 0x4066bd
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4066bd
push 0x10
mov edx, str.is_wegame_family
call fcn.00408b60
add esp, 4
test eax, eax
je 0x4066bd
cmp dword [eax + 4], 6
jne 0x4066bd
cmp dword [eax + 8], 0
je 0x4066bd
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x278]
push 0xa
push eax
push esi
call fcn.0040fb96
add esp, 0xc
xor eax, eax
mov word [esp + 0x2ee], ax
lea eax, [esp + 0x3f0]
push str.c:windows_tgp_config.ini
push eax
lea eax, [esp + 0x278]
push eax
push str.install
call ebx
inc esi
mov dword [esp + 0x14], esi
mov ecx, edi
call fcn.0040a700
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406540
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call edi
mov esi, dword [esp + 0x18]
or eax, 0xffffffff
mov dword [esp + 0x10], eax
jmp 0x4066f6
mov eax, dword [esp + 0x10]
add esi, 8
xor ecx, ecx
mov dword [esp + 0x18], esi
cmp cx, word [esi]
jne 0x406470
cmp eax, 0xffffffff
je 0x406710
push eax
call edi
mov ecx, dword [esp + 0x7f4]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040a851
mov esp, ebp
pop ebp
ret