Function at 0x42a047
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4925
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc6c
mov dword [ebp - 0xc78], ecx
lea ecx, [ebp - 0x444]
call fcn.004de760
mov dword [ebp - 4], 0
cmp dword [0x53b44c], 0
jne 0x42a0ad
mov dword [ebp - 0xc58], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
call fcn.004de855
mov eax, dword [ebp - 0xc58]
jmp 0x42a7bb
push 0x208
push 0
lea eax, [ebp - 0x850]
push eax
call fcn.004b9030
add esp, 0xc
mov ecx, dword [ebp - 0xc78]
add ecx, 0x2dd
push ecx
lea edx, [ebp - 0x850]
push edx
call fcn.004b9290
add esp, 8
push 0x51d2d4
lea eax, [ebp - 0x850]
push eax
call fcn.004b92a0
add esp, 8
push 0x208
push 0
lea ecx, [ebp - 0x22c]
push ecx
call fcn.004b9030
add esp, 0xc
push 0x10
push 0x53c240
lea edx, [ebp - 0x22c]
push edx
call fcn.004b96d0
add esp, 0xc
movsx eax, byte [ebp - 0x22c]
test eax, eax
jne 0x42a16c
cmp dword [0x53b4b8], 0x979
jne 0x42a14c
push 0x51d2e0
lea ecx, [ebp - 0x22c]
push ecx
call fcn.004b9290
add esp, 8
jmp 0x42a16c
cmp dword [0x53b4b8], 0x97a
jne 0x42a16c
push 0x51d2e8
lea edx, [ebp - 0x22c]
push edx
call fcn.004b9290
add esp, 8
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x850]
push ecx
call fcn.004b92a0
add esp, 8
push 0x51d2f0
lea edx, [ebp - 0x850]
push edx
call fcn.004b92a0
add esp, 8
cmp dword [0x53c228], 0
je 0x42a1ce
mov eax, dword [ebp - 0xc78]
add eax, 0x2d6
push eax
lea ecx, [ebp - 0x850]
push ecx
call fcn.004b92a0
add esp, 8
push 0x51d2f4
lea edx, [ebp - 0x850]
push edx
call fcn.004b92a0
add esp, 8
push 0x208
push 0
lea eax, [ebp - 0x22c]
push eax
call fcn.004b9030
add esp, 0xc
lea ecx, [ebp - 0x850]
push ecx
lea edx, [ebp - 0x22c]
push edx
call fcn.004b9290
add esp, 8
movsx eax, byte [0x53c224]
test eax, eax
je 0x42a219
push 0x53c224
lea ecx, [ebp - 0x22c]
push ecx
call fcn.004b92a0
add esp, 8
push 0x51d2f8
lea edx, [ebp - 0x22c]
push edx
call fcn.004b92a0
add esp, 8
push 0x208
push 0
lea eax, [ebp - 0x434]
push eax
call fcn.004b9030
add esp, 0xc
mov ecx, dword [ebp - 0xc78]
add ecx, 0x2dd
push ecx
lea edx, [ebp - 0x434]
push edx
call fcn.004b9290
add esp, 8
push 0x51d308
lea eax, [ebp - 0x434]
push eax
call fcn.004b92a0
add esp, 8
mov ecx, dword [ebp - 0xc78]
cmp dword [ecx + 0x15e], 0
jne 0x42a33c
push 0
lea edx, [ebp - 0x434]
push edx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x42a315
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push 0x400
push 0
lea ecx, [ebp - 0xc50]
push ecx
call fcn.004b9030
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x434]
push eax
push str.Cant_create__s_file_to_DriveSetting_Folder_1___errorcode___d
lea ecx, [ebp - 0xc50]
push ecx
call fcn.004b953d
add esp, 0x10
push 0
push 0
lea edx, [ebp - 0xc50]
push edx
call fcn.004e4d41
mov dword [ebp - 0xc5c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
call fcn.004de855
mov eax, dword [ebp - 0xc5c]
jmp 0x42a7bb
mov dword [ebp - 0xc60], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
call fcn.004de855
mov eax, dword [ebp - 0xc60]
jmp 0x42a7bb
push 0
push 0x8040
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x444]
call fcn.004de912
test eax, eax
je 0x42a4ad
lea ecx, [ebp - 0x444]
call fcn.004dec0c
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004b9b1e
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x42a3f3
push 0x400
push 0
lea edx, [ebp - 0xc50]
push edx
call fcn.004b9030
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
push str.Cant_allocate_memory_to_read__s_file
lea ecx, [ebp - 0xc50]
push ecx
call fcn.004b953d
add esp, 0xc
push 0
push 0
lea edx, [ebp - 0xc50]
push edx
call fcn.004e4d41
lea ecx, [ebp - 0x444]
call fcn.004deb2d
mov dword [ebp - 0xc64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
call fcn.004de855
mov eax, dword [ebp - 0xc64]
jmp 0x42a7bb
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004b9030
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x444]
call fcn.004dea2f
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x42a4a0
push 0x400
push 0
lea ecx, [ebp - 0xc50]
push ecx
call fcn.004b9030
add esp, 0xc
lea edx, [ebp - 0x22c]
push edx
push str.Cant_read__s_file_2_
lea eax, [ebp - 0xc50]
push eax
call fcn.004b953d
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0xc50]
push ecx
call fcn.004e4d41
lea ecx, [ebp - 0x444]
call fcn.004deb2d
mov edx, dword [ebp - 0x24]
push edx
call fcn.004b9a0d
add esp, 4
mov dword [ebp - 0xc68], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
call fcn.004de855
mov eax, dword [ebp - 0xc68]
jmp 0x42a7bb
lea ecx, [ebp - 0x444]
call fcn.004deb2d
jmp 0x42a515
push 0x400
push 0
lea eax, [ebp - 0xc50]
push eax
call fcn.004b9030
add esp, 0xc
lea ecx, [ebp - 0x22c]
push ecx
push str.Cant_read__s_file_1_
lea edx, [ebp - 0xc50]
push edx
call fcn.004b953d
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0xc50]
push eax
call fcn.004e4d41
mov dword [ebp - 0xc6c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
call fcn.004de855
mov eax, dword [ebp - 0xc6c]
jmp 0x42a7bb
push 0x208
push 0
lea ecx, [ebp - 0x850]
push ecx
call fcn.004b9030
add esp, 0xc
mov edx, dword [ebp - 0xc78]
add edx, 0x2dd
push edx
lea eax, [ebp - 0x850]
push eax
call fcn.004b9290
add esp, 8
push str.Tables
lea ecx, [ebp - 0x850]
push ecx
call fcn.004b92a0
add esp, 8
push 0x208
push 0
lea edx, [ebp - 0x22c]
push edx
call fcn.004b9030
add esp, 0xc
mov eax, dword [ebp - 0xc78]
mov ecx, dword [eax + 0x15e]
push ecx
lea edx, [ebp - 0x850]
push edx
push str._sRR_02d.bin
lea eax, [ebp - 0x22c]
push eax
call fcn.004b953d
add esp, 0x10
push 0
push 0x8040
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x444]
call fcn.004de912
test eax, eax
je 0x42a6e5
lea ecx, [ebp - 0x444]
call fcn.004dec0c
mov dword [ebp - 0x648], eax
cmp dword [ebp - 0x648], 0x200
jle 0x42a5e1
mov dword [ebp - 0x648], 0x200
push 0x200
push 0
lea edx, [ebp - 0x644]
push edx
call fcn.004b9030
add esp, 0xc
mov eax, dword [ebp - 0x648]
push eax
lea ecx, [ebp - 0x644]
push ecx
lea ecx, [ebp - 0x444]
call fcn.004dea2f
test eax, eax
je 0x42a6da
push 8
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.004b9030
add esp, 0xc
push 7
lea eax, [ebp - 0x63b]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.004b96d0
add esp, 0xc
push str.RrTable
lea edx, [ebp - 0x20]
push edx
call fcn.004b9c90
add esp, 8
test eax, eax
je 0x42a674
mov eax, dword [ebp - 0x648]
push eax
lea ecx, [ebp - 0x644]
push ecx
mov edx, dword [ebp - 0x24]
add edx, 0x880
push edx
call fcn.004b96d0
add esp, 0xc
jmp 0x42a6da
push 0x1c0
lea eax, [ebp - 0x644]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x8c0
push ecx
call fcn.004b96d0
add esp, 0xc
mov edx, dword [ebp - 0xc78]
cmp dword [edx + 0x15e], 1
jne 0x42a6b7
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x891], 0x22
mov ecx, dword [ebp - 0x24]
mov byte [ecx + 0x894], 0x1b
jmp 0x42a6da
mov edx, dword [ebp - 0xc78]
cmp dword [edx + 0x15e], 2
jne 0x42a6da
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x891], 0x23
mov ecx, dword [ebp - 0x24]
mov byte [ecx + 0x894], 0x14
lea ecx, [ebp - 0x444]
call fcn.004deb2d
push 0x51d3e0
lea edx, [ebp - 0x434]
push edx
call fcn.004b93e4
add esp, 8
mov dword [ebp - 0xc54], eax
cmp dword [ebp - 0xc54], 0
jne 0x42a765
push 0x400
push 0
lea eax, [ebp - 0xc50]
push eax
call fcn.004b9030
add esp, 0xc
push 0
push 0x51d3e4
push str.Fail_to_save_New_isp_file.
mov ecx, dword [ebp - 0xc78]
call fcn.004db06e
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004b9a0d
add esp, 4
mov dword [ebp - 0xc70], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
call fcn.004de855
mov eax, dword [ebp - 0xc70]
jmp 0x42a7bb
mov edx, dword [ebp - 0xc54]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004b9244
add esp, 0x10
mov edx, dword [ebp - 0xc54]
push edx
call fcn.004b90dc
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
call fcn.004b9a0d
add esp, 4
mov dword [ebp - 0xc74], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
call fcn.004de855
mov eax, dword [ebp - 0xc74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret