Function at 0x407760
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1e30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x344
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x4aa2d4
lea eax, [ebp - 0x14]
xor ebx, ebx
push str.Data_patch.MPQ
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call fcn.0048c090
add esp, 0xc
test eax, eax
jne 0x4077d8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0048bd6f
push str.Data_patch.MPQ
mov dword [ebp - 0x14], ebx
call fcn.0048c4c9
add esp, 8
test eax, eax
je 0x4077d8
push 0x4d42f8
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x3c], str.delete_patch.mpq
call fcn.0048b4c9
push 0x4aa2d4
lea eax, [ebp - 0x14]
push str.Data_patch_2.MPQ
push eax
call fcn.0048c090
add esp, 0xc
test eax, eax
jne 0x407824
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0048bd6f
push str.Data_patch_2.MPQ
mov dword [ebp - 0x14], ebx
call fcn.0048c4c9
add esp, 8
test eax, eax
je 0x407824
push 0x4d42f8
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], str.delete_patch_2.mpq
call fcn.0048b4c9
push 0x4aa2d4
lea eax, [ebp - 0x14]
push str.Data_patch_3.MPQ
push eax
call fcn.0048c090
add esp, 0xc
test eax, eax
jne 0x407870
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0048bd6f
push str.Data_patch_3.MPQ
mov dword [ebp - 0x14], ebx
call fcn.0048c4c9
add esp, 8
test eax, eax
je 0x407870
push 0x4d42f8
lea edx, [ebp - 0x38]
push edx
mov dword [ebp - 0x38], str.delete_patch_3.mpq
call fcn.0048b4c9
push 0x4aa2d4
lea eax, [ebp - 0x14]
push str.Data_patch_4.MPQ
push eax
call fcn.0048c090
add esp, 0xc
test eax, eax
jne 0x4078bc
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0048bd6f
push str.Data_patch_4.MPQ
mov dword [ebp - 0x14], ebx
call fcn.0048c4c9
add esp, 8
test eax, eax
je 0x4078bc
push 0x4d42f8
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], str.delete_patch_4.mpq
call fcn.0048b4c9
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
xor esi, esi
cmp esi, 0xc
jge 0x407a71
mov eax, dword [esi*4 + 0x4dd100]
push eax
push eax
lea eax, [ebp - 0x148]
push str.Data_spatch__s.MPQ
push eax
call edi
push 0x4aa2d4
lea ecx, [ebp - 0x148]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0048c090
add esp, 0x1c
test eax, eax
jne 0x407934
mov eax, dword [ebp - 0x14]
push eax
call fcn.0048bd6f
lea ecx, [ebp - 0x148]
push ecx
mov dword [ebp - 0x14], ebx
call fcn.0048c4c9
add esp, 8
test eax, eax
je 0x407934
push 0x4d42f8
lea edx, [ebp - 0x34]
push edx
mov dword [ebp - 0x34], str.delete_patch_locale.mpq
call fcn.0048b4c9
mov eax, dword [esi*4 + 0x4dd100]
push eax
push eax
lea eax, [ebp - 0x148]
push str.Data_spatch__s_2.MPQ
push eax
call edi
push 0x4aa2d4
lea ecx, [ebp - 0x148]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0048c090
add esp, 0x1c
test eax, eax
jne 0x40799b
mov eax, dword [ebp - 0x14]
push eax
call fcn.0048bd6f
lea ecx, [ebp - 0x148]
push ecx
mov dword [ebp - 0x14], ebx
call fcn.0048c4c9
add esp, 8
test eax, eax
je 0x40799b
push 0x4d42f8
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], str.delete_patch_locale_2.mpq
call fcn.0048b4c9
mov eax, dword [esi*4 + 0x4dd100]
push eax
push eax
lea eax, [ebp - 0x148]
push str.Data_spatch__s_3.MPQ
push eax
call edi
push 0x4aa2d4
lea ecx, [ebp - 0x148]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0048c090
add esp, 0x1c
test eax, eax
jne 0x407a02
mov eax, dword [ebp - 0x14]
push eax
call fcn.0048bd6f
lea ecx, [ebp - 0x148]
push ecx
mov dword [ebp - 0x14], ebx
call fcn.0048c4c9
add esp, 8
test eax, eax
je 0x407a02
push 0x4d42f8
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], str.delete_patch_locale_3.mpq
call fcn.0048b4c9
mov eax, dword [esi*4 + 0x4dd100]
push eax
push eax
lea eax, [ebp - 0x148]
push str.Data_spatch__s_4.MPQ
push eax
call edi
push 0x4aa2d4
lea ecx, [ebp - 0x148]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0048c090
add esp, 0x1c
test eax, eax
jne 0x407a69
mov eax, dword [ebp - 0x14]
push eax
call fcn.0048bd6f
lea ecx, [ebp - 0x148]
push ecx
mov dword [ebp - 0x14], ebx
call fcn.0048c4c9
add esp, 8
test eax, eax
je 0x407a69
push 0x4d42f8
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], str.delete_patch_locale_4.mpq
call fcn.0048b4c9
add esi, 1
jmp 0x4078c4
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
xor esi, esi
lea esp, [esp]
cmp esi, 0xc
jge 0x407bd1
mov eax, dword [esi*4 + 0x4dd100]
push eax
push eax
lea eax, [ebp - 0x24c]
push str.Data_s_base__s.MPQ
push eax
call edi
mov eax, dword [esi*4 + 0x4dd100]
push eax
push eax
lea ecx, [ebp - 0x350]
push str.Data_s_backup__s.MPQ
push ecx
call edi
push 0x4aa2d4
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.0048c090
add esp, 0x2c
test eax, eax
jne 0x407bc9
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0048bd6f
add esp, 4
push 0
lea edx, [ebp - 0x350]
push edx
lea eax, [ebp - 0x24c]
push eax
mov dword [ebp - 0x14], 0
call ebx
test eax, eax
jne 0x407b15
push 0x4d42f8
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], str.copy_base.mpq_to_backup.mpq
call fcn.0048b4c9
push 0
push 0x405600
lea edx, [ebp - 0x24c]
push edx
call fcn.00407240
test al, al
jne 0x407bc9
push 0x4d42f8
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], str.extract_file_from_base.mpq
call fcn.0048b4c9
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x407b55
push eax
call fcn.0048bd6f
add esp, 4
mov eax, dword [0x4e2ca4]
test eax, eax
je 0x407b7b
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x407b7b
cmp byte [edx], 0
je 0x407b7b
push 0x4a8994
push 0x4a8994
mov ecx, str.RevertTo200
call eax
mov eax, 0x407b81
ret
add esi, 1
jmp 0x407a80
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret