Function at 0x421d00
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x49f350
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x28]
lea edi, [esi + 0x28]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x421d71
cmp dword [esi + 0x88], ebx
jne 0x421ff3
cmp dword [esi + 0x10], ebx
je 0x421d58
mov ecx, dword [esi + 0x18]
cmp dword [ecx - 0xc], ebx
je 0x421d58
push ebx
call fcn.00411aa0
add esp, 4
mov eax, dword [edi]
push eax
add esi, 0x34
call fcn.00412c30
test eax, eax
jne 0x421d87
mov dword [0x4c2298], 0x3f5
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
lea ecx, [esp + 0x20]
push edi
push ecx
mov ebx, 0x4a7254
call fcn.00412200
mov esi, eax
lea edx, [esp + 0x24]
push 0x4c5868
push edx
mov ebx, edi
mov dword [esp + 0x48], 0
call fcn.004264f0
push eax
lea eax, [esp + 0x2c]
push eax
mov ebx, 0x4a726c
mov byte [esp + 0x50], 1
call fcn.00412200
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0x18
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push eax
call esi
test eax, eax
mov eax, dword [esp + 0x18]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421dff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421e24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421e4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x421f38
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4a7284
push 0x4a729c
mov ecx, 0x4c5908
call fcn.00472890
add esp, 0xc
lea ecx, [esp + 0x20]
push edi
push ecx
mov ebx, 0x4a72c0
call fcn.00412200
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [esp + 0x20]
sete bl
call fcn.00406e10
test bl, bl
jne 0x421fd0
lea edx, [esp + 0x18]
push edi
push edx
mov ebx, 0x4a72d8
call fcn.00412200
mov ebp, eax
lea eax, [esp + 0x24]
push 0x4c5868
push eax
mov ebx, edi
mov dword [esp + 0x48], 2
call fcn.004264f0
push eax
lea ecx, [esp + 0x34]
push ecx
mov ebx, 0x4a72f8
mov byte [esp + 0x50], 3
call fcn.00412200
mov ebp, dword [ebp]
mov eax, dword [eax]
add esp, 0x18
push 0
push ebp
push eax
call esi
test eax, eax
lea ecx, [esp + 0x20]
sete bl
call fcn.00406e10
lea ecx, [esp + 0x1c]
call fcn.00406e10
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
call fcn.00406e10
test bl, bl
je 0x421fd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Shuame_new.exe
push 0x4a7330
jmp 0x421fc3
lea edx, [esp + 0x2c]
push edi
push edx
mov ebx, 0x4a7354
call fcn.00412200
mov ebp, eax
lea eax, [esp + 0x30]
push 0x4c5868
push eax
mov ebx, edi
mov dword [esp + 0x48], 4
call fcn.004264f0
push eax
lea ecx, [esp + 0x38]
push ecx
mov ebx, 0x4a736c
mov byte [esp + 0x50], 5
call fcn.00412200
mov ebp, dword [ebp]
mov eax, dword [eax]
add esp, 0x18
push 0
push ebp
push eax
call esi
test eax, eax
lea ecx, [esp + 0x24]
sete bl
call fcn.00406e10
lea ecx, [esp + 0x28]
call fcn.00406e10
lea ecx, [esp + 0x2c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00406e10
test bl, bl
je 0x422000
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4a7384
push str.copy__S_to_upper_folder_failed:__d
mov ecx, 0x4c5908
call fcn.00472890
add esp, 0xc
mov dword [0x4c2298], 0x3f6
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
call fcn.00425af0
test eax, eax
je 0x421d71
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret