Function at 0x10001440
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100138f0
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x1001d004]
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.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmDE_Random_closed.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmDE_Random_open.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmDE_Random_pool.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Acropolis.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Arabia.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Arena.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Baltic.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Big_Freeze.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Black_Forest.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_BF_Lord.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Caribbean.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Cenotes.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Chaos_Pit.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Clearing.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Cross.rms
call fcn.1000550f
add esp, 0x40
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Forest_Prison.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Fortress.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Ghost_Lake.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Glade.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Gold_Rush.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Gold_Volcano.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Golden_Pit.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Golden_Swamp.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Gorge.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Graveyards.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Hamburger.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Hideout.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Highland.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Hillfort.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Islands.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Lombardia.rms
call fcn.1000550f
add esp, 0x40
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Mediterranean.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Mongolia.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Oasis.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Rooster.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Scandinavia.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Socotra.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Team_Acropolis.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Team_Islands.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Twin_Puddles.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Valley.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Random_closed.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Random_open.rms
call fcn.1000550f
push str.Voobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Random_pool.rms
call fcn.1000550f
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x34
nop
push 3
call esi
mov eax, dword [0x1001e370]
test eax, eax
je 0x10001640
cmp eax, 1
jne 0x10001796
push str.Voobly_ModsAOCLocal_ModsEmpire_Wars
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10001943
push 0
call fcn.10007271
push eax
call fcn.100052f5
call fcn.10001390
mov esi, eax
call fcn.100052d4
cdq
idiv esi
call fcn.10001300
push eax
lea eax, [ebp - 0x74]
push 0x1001a5b0
push eax
call fcn.100010e0
add esp, 0x14
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
push 0x35
push ecx
lea ecx, [ebp - 0x8c]
call fcn.100019d0
lea edi, [ebp - 0x74]
mov dword [ebp - 4], 0
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100016d7
mov edx, dword [ebp - 0x78]
sub edi, ecx
mov ecx, dword [ebp - 0x7c]
mov eax, edx
sub eax, ecx
push edi
cmp edi, eax
ja 0x1000171a
lea eax, [ecx + edi]
cmp edx, 0x10
mov dword [ebp - 0x7c], eax
lea esi, [ebp - 0x8c]
cmovae esi, dword [ebp - 0x8c]
lea eax, [ebp - 0x74]
add esi, ecx
push eax
push esi
call fcn.100047a0
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x10001737
lea eax, [ebp - 0x74]
mov byte [ebp - 0x90], 0
push eax
push dword [ebp - 0x90]
lea ecx, [ebp - 0x8c]
push edi
call fcn.10001b00
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 0x10001943
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001787
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000195e
push ecx
push edx
call fcn.10001dc5
add esp, 8
jmp 0x10001943
push str.Voobly_ModsAOCLocal_ModsEmpire_WarsVoobly_ModsAOCData_Mods_v1.6_Game_DataScenarioEW_Arabia_1v1.scx
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Acropolis.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Arabia.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Arena.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Baltic.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Big_Freeze.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Black_Forest.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_BF_Lord.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Caribbean.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Cenotes.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Chaos_Pit.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Clearing.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Cross.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Forest_Prison.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Fortress.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Ghost_Lake.rms
call fcn.1000550f
add esp, 0x40
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Glade.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Gold_Rush.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Gold_Volcano.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Golden_Pit.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Golden_Swamp.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Gorge.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Graveyards.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Hamburger.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Hideout.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Highland.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Hillfort.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Islands.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Lombardia.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Mediterranean.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Mongolia.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Oasis.rms
call fcn.1000550f
add esp, 0x40
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Rooster.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Scandinavia.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Socotra.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Team_Acropolis.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Team_Islands.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Twin_Puddles.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Valley.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Random_closed.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Random_open.rms
call fcn.1000550f
push str.Voobly_ModsAOCLocal_ModsHandicap_ModeVoobly_ModsAOCData_Mods_v1.6_Game_DataScript.RmH_Random_pool.rms
call fcn.1000550f
add esp, 0x28
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.10001d82
mov esp, ebp
pop ebp
ret
call fcn.10007505
int3