Function at 0x10001190
Capabilities:
Check if file exists
Copy file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100120eb
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x1001c00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScenarioEW_Arabia_1v1.scx
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmDE_Random_closed.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmDE_Random_open.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmDE_Random_pool.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Acropolis.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Arabia.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Arena.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Baltic.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Big_Freeze.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Black_Forest.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_BF_Lord.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Caribbean.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Cenotes.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Chaos_Pit.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Clearing.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Cross.rms
call fcn.10005a31
add esp, 0x40
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Forest_Prison.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Fortress.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Ghost_Lake.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Glade.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Gold_Rush.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Gold_Volcano.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Golden_Pit.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Golden_Swamp.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Gorge.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Graveyards.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Hamburger.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Hideout.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Highland.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Hillfort.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Islands.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Lombardia.rms
call fcn.10005a31
add esp, 0x40
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Mediterranean.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Mongolia.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Oasis.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Rooster.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Scandinavia.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Socotra.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Team_Acropolis.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Team_Islands.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Twin_Puddles.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Valley.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Random_closed.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Random_open.rms
call fcn.10005a31
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Random_pool.rms
call fcn.10005a31
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x34
nop
push 3
call esi
mov eax, dword [0x1001c86c]
test eax, eax
je 0x10001390
cmp eax, 1
jne 0x100014ae
push str.Voobly_ModsAOCLocal_ModsEmpire_Wars
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000165b
push 0
call fcn.10006e0e
push eax
call fcn.10005a1f
add esp, 8
lea eax, [ebp - 0x1cc]
xor esi, esi
push eax
push str.Voobly_ModsAOCLocal_ModsEmpire_WarsEW_Arabia_1v1
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10001406
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop dword [eax + eax]
lea eax, [ebp - 0x1cc]
inc esi
push eax
push edi
call ebx
test eax, eax
jne 0x100013f0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.100059fe
cdq
idiv esi
push edx
push str.Voobly_ModsAOCLocal_ModsEmpire_WarsEW_Arabia_1v1
call fcn.10001e10
push eax
lea eax, [ebp - 0x74]
push 0x10013e40
push eax
call fcn.10001ea0
add esp, 0x14
lea ecx, [ebp - 0x8c]
push str.Voobly_ModsAOCLocal_ModsEmpire_WarsEW_Arabia_1v1_
call fcn.10001040
cmp byte [ebp - 0x74], 0
mov dword [ebp - 4], 0
jne 0x1000144c
xor ecx, ecx
jmp 0x1000145b
lea ecx, [ebp - 0x74]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001452
sub ecx, edx
push ecx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x8c]
call fcn.10001980
cmp dword [ebp - 0x78], 0x10
lea eax, [ebp - 0x8c]
push 0
cmovae eax, dword [ebp - 0x8c]
push str.Voobly_ModsAOCLocal_ModsEmpire_WarsVoobly_ModsAOCData_Mods_v1.6_Game_DataScenarioEW_Arabia_1v1.scx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp - 0x78]
cmp eax, 0x10
jb 0x1000165b
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.10001ce0
jmp 0x1000165b
push str.Voobly_ModsAOCLocal_ModsEmpire_WarsVoobly_ModsAOCData_Mods_v1.6_Game_DataScenarioEW_Arabia_1v1.scx
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Acropolis.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Arabia.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Arena.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Baltic.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Big_Freeze.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Black_Forest.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_BF_Lord.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Caribbean.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Cenotes.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Chaos_Pit.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Clearing.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Cross.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Forest_Prison.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Fortress.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Ghost_Lake.rms
call fcn.10005a31
add esp, 0x40
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Glade.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Gold_Rush.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Gold_Volcano.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Golden_Pit.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Golden_Swamp.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Gorge.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Graveyards.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Hamburger.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Hideout.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Highland.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Hillfort.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Islands.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Lombardia.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Mediterranean.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Mongolia.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Oasis.rms
call fcn.10005a31
add esp, 0x40
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Rooster.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Scandinavia.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Socotra.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Team_Acropolis.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Team_Islands.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Twin_Puddles.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Valley.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Random_closed.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Random_open.rms
call fcn.10005a31
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Random_pool.rms
call fcn.10005a31
add esp, 0x28
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100021b1
mov esp, ebp
pop ebp
ret