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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10013740
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x1001d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
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.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmDE_Random_closed.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmDE_Random_open.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmDE_Random_pool.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Acropolis.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Arabia.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Arena.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Baltic.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Big_Freeze.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Black_Forest.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_BF_Lord_full.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_BF_Lord_min.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_BF_Lord_nW.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Caribbean.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Cenotes.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Chaos_Pit.rms
call fcn.1000573b
add esp, 0x40
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Clearing.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Cross.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Forest_Prison.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Fortress.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Ghost_Lake.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Glade.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Gold_Rush.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Gold_Volcano.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Golden_Pit.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Golden_Swamp.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Gorge.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Graveyards.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Hamburger.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Hideout.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Highland.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Hillfort.rms
call fcn.1000573b
add esp, 0x40
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Islands.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Lombardia.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Mediterranean.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Mongolia.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Oasis.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Rooster.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Scandinavia.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Socotra.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Team_Acropolis.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Team_Islands.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Twin_Puddles.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Valley.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Random_closed.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Random_open.rms
call fcn.1000573b
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Random_pool.rms
call fcn.1000573b
add esp, 0x3c
push str.Voobly_ModsAOCLocal_ModsEmpire_Wars
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000169e
push 0
call fcn.10007341
push eax
call fcn.10005521
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, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x1d0], eax
cmp eax, 0xffffffff
je 0x10001531
lea ecx, [ebp - 0x1cc]
inc esi
push ecx
push eax
call edi
test eax, eax
mov eax, dword [ebp - 0x1d0]
jne 0x10001515
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.10005500
cdq
idiv esi
lea eax, [ebp - 0x1cc]
xor esi, esi
push eax
push str.Voobly_ModsAOCLocal_ModsEmpire_WarsEW_Arabia_1v1
mov dword [ebp - 0x1d4], edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1d0], eax
cmp eax, 0xffffffff
je 0x10001588
nop
cmp dword [ebp - 0x1d4], esi
je 0x10001689
lea ecx, [ebp - 0x1cc]
inc esi
push ecx
push eax
call edi
test eax, eax
mov eax, dword [ebp - 0x1d0]
jne 0x10001560
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 0x100141d4
push eax
lea eax, [ebp - 0x74]
push 0x10014f30
push eax
call fcn.10001af0
add esp, 0xc
mov dword [ebp - 0x8c], 0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
push 0x40
call fcn.100018f0
movups xmm0, xmmword [str.Voobly_ModsAOCLocal_ModsEmpire_WarsEW_Arabia_1v1_]
mov ecx, eax
mov dword [ebp - 0x7c], 0x35
mov dword [ebp - 0x78], 0x3f
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x10014f44]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [0x10014f54]
movups xmmword [ecx + 0x20], xmm0
mov eax, dword [0x10014f64]
mov dword [ecx + 0x30], eax
mov al, byte [0x10014f68]
mov byte [ecx + 0x34], al
mov byte [ecx + 0x35], 0
mov dword [ebp - 0x8c], ecx
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001622
sub ecx, edx
lea eax, [ebp - 0x74]
push ecx
push eax
lea ecx, [ebp - 0x8c]
call fcn.10001950
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 ecx, dword [ebp - 0x78]
cmp ecx, 0x10
jb 0x1000169e
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001694
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100018ab
jmp 0x10001694
lea eax, [ebp - 0x1a0]
jmp 0x1000158d
push ecx
push edx
call fcn.10001c94
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0x7a504c
nop dword [eax]
push 3
call esi
cmp dword [edi], 2
je 0x10001890
mov eax, dword [0x1001d958]
test eax, eax
je 0x100016b0
cmp eax, 1
je 0x10001890
push str.Voobly_ModsAOCLocal_ModsEmpire_WarsVoobly_ModsAOCData_Mods_v1.6_Game_DataScenarioEW_Arabia_1v1.scx
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Acropolis.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Arabia.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Arena.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Baltic.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Big_Freeze.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Black_Forest.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_BF_Lord_full.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_BF_Lord_min.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_BF_Lord_nW.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Caribbean.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Cenotes.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Chaos_Pit.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Clearing.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Cross.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Forest_Prison.rms
call fcn.1000573b
add esp, 0x40
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Fortress.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Ghost_Lake.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Glade.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Gold_Rush.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Gold_Volcano.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Golden_Pit.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Golden_Swamp.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Gorge.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Graveyards.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Hamburger.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Hideout.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Highland.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Hillfort.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Islands.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Lombardia.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Mediterranean.rms
call fcn.1000573b
add esp, 0x40
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Mongolia.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Oasis.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Rooster.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Scandinavia.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Socotra.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Team_Acropolis.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Team_Islands.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Twin_Puddles.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Valley.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Random_closed.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Random_open.rms
call fcn.1000573b
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Random_pool.rms
call fcn.1000573b
add esp, 0x30
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.10001ca2
mov esp, ebp
pop ebp
ret
call fcn.100054af
int3