Function at 0x427c90
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x5925f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x650], ecx
mov word [ebp - 0x418], 0
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.004caa30
add esp, 0xc
mov word [ebp - 0x42c], 0
xor ecx, ecx
mov dword [ebp - 0x42a], ecx
mov dword [ebp - 0x426], ecx
mov dword [ebp - 0x422], ecx
mov dword [ebp - 0x41e], ecx
mov word [ebp - 0x41a], cx
mov word [ebp - 0x210], 0
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.004caa30
add esp, 0xc
push 0x41
mov ecx, dword [0x594280]
call fcn.0042bd00
mov ecx, eax
call fcn.0048c7f0
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jne 0x427d39
jmp 0x427fbc
mov ecx, dword [0x594280]
call fcn.0042bca0
mov ecx, eax
call fcn.0042b220
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004caa10
add esp, 8
push 0x54b0b8
lea ecx, [ebp - 0x210]
push ecx
call fcn.004ca9e6
add esp, 8
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x430]
push eax
push 0x54b0c4
lea ecx, [ebp - 0x42c]
push ecx
call fcn.004cb62b
add esp, 0xc
push 0x54b0cc
lea edx, [ebp - 0x418]
push edx
call fcn.004ca9e6
add esp, 8
mov ecx, dword [0x594280]
call fcn.0042bca0
mov ecx, eax
call fcn.0042b180
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.004ca9e6
add esp, 8
push 0x54b0d0
lea ecx, [ebp - 0x418]
push ecx
call fcn.004ca9e6
add esp, 8
lea edx, [ebp - 0x42c]
push edx
lea eax, [ebp - 0x418]
push eax
call fcn.004ca9e6
add esp, 8
mov ecx, dword [0x594280]
call fcn.0042bcc0
mov dword [ebp - 0x654], eax
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp - 0x654]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x654]
mov edx, dword [eax + 0x24]
call edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x427fbc
mov ecx, dword [0x594280]
call fcn.0042bca0
mov ecx, eax
call fcn.0042b220
mov dword [ebp - 0x438], eax
push 0
mov ecx, dword [ebp - 0x438]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
je 0x427fbc
mov word [ebp - 0x648], 0
push 0x206
push 0
lea eax, [ebp - 0x646]
push eax
call fcn.004caa30
add esp, 0xc
mov ecx, dword [0x594280]
call fcn.0042bca0
mov ecx, eax
call fcn.0042b180
push eax
lea ecx, [ebp - 0x648]
push ecx
call fcn.004caa10
add esp, 8
push str.ResConfig.ini
lea edx, [ebp - 0x648]
push edx
call fcn.004ca9e6
add esp, 8
push 0
lea eax, [ebp - 0x648]
push eax
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x31
mov ecx, dword [0x594280]
call fcn.0042bd00
mov ecx, eax
call fcn.0048c7f0
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp - 0x43c]
add eax, 1
mov dword [ebp - 0x43c], eax
mov ecx, dword [ebp - 0x43c]
push ecx
push 0x31
mov ecx, dword [0x594280]
call fcn.0042bd00
mov ecx, eax
call fcn.0048c970
push 0x43
mov ecx, dword [0x594280]
call fcn.0042bd00
mov ecx, eax
call fcn.0048c7f0
mov dword [ebp - 0x64c], eax
mov edx, dword [ebp - 0x64c]
add edx, 1
mov dword [ebp - 0x64c], edx
mov eax, dword [ebp - 0x64c]
push eax
push 0x43
mov ecx, dword [0x594280]
call fcn.0042bd00
mov ecx, eax
call fcn.0048c970
push 0x47
mov ecx, dword [0x594280]
call fcn.0042bd00
mov ecx, eax
call fcn.0048c7f0
mov dword [ebp - 0x440], eax
mov ecx, dword [ebp - 0x440]
add ecx, 1
mov dword [ebp - 0x440], ecx
mov edx, dword [ebp - 0x440]
push edx
push 0x47
mov ecx, dword [0x594280]
call fcn.0042bd00
mov ecx, eax
call fcn.0048c970
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ca9d7
mov esp, ebp
pop ebp
ret