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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f17b8
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 1
xor ecx, ecx
xor edi, edi
push 0x4fea60
lea esi, [esp + 0x90]
mov dword [esp + 0x18], eax
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], edi
mov word [esp + 0x94], cx
call fcn.00401760
mov dword [esp + 0xd0], edi
xor edx, edx
mov eax, ebx
mov word [esp + 0x70], dx
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x480420
sub eax, edx
sar eax, 1
push eax
push ebx
lea esi, [esp + 0x74]
call fcn.00401760
mov byte [esp + 0xd0], 1
mov eax, dword [esp + 0x8c]
mov ebx, 8
cmp dword [esp + 0xa0], ebx
jae 0x48045e
lea eax, [esp + 0x8c]
mov ecx, dword [esp + 0x9c]
push ecx
push eax
lea edx, [esp + 0x74]
push edx
call fcn.0043b890
lea edx, [eax + 1]
lea eax, [esp + 0x6c]
push eax
or ecx, 0xffffffff
lea esi, [esp + 0xa8]
call fcn.00408160
mov byte [esp + 0xd0], 2
mov eax, dword [esp + 0xa8]
cmp dword [esp + 0xbc], ebx
jae 0x4804a7
lea eax, [esp + 0xa8]
push eax
push 0x50b534
mov ebx, 0x104
push 0x5352b8
mov edx, ebx
call fcn.00482330
mov esi, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x14]
xor ecx, ecx
xor edx, edx
push eax
mov dword [esp + 0x18], 0x58
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0x52fac8
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 0x5352b8
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0x5350b0
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov word [esp + 0x50], cx
mov word [esp + 0x52], dx
mov dword [esp + 0x54], 0x50b52c
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x48058c
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x480567
push 4
push 0x502698
push 0x50b53c
push esi
call fcn.00409ca0
add esp, 0x10
cmp eax, 1
jne 0x48058c
mov eax, dword [esp + 0x70]
mov ebx, 8
cmp dword [esp + 0x84], ebx
jae 0x48057d
lea eax, [esp + 0x70]
mov edx, dword [esp + 0x30]
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x480591
mov ebx, 8
cmp dword [esp + 0xbc], ebx
jb 0x4805aa
mov eax, dword [esp + 0xa8]
push eax
call fcn.004c8f17
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], edi
mov word [esp + 0xa8], cx
cmp dword [esp + 0x84], ebx
jb 0x4805dd
mov edx, dword [esp + 0x70]
push edx
call fcn.004c8f17
add esp, 4
xor eax, eax
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], edi
mov word [esp + 0x70], ax
cmp dword [esp + 0xa0], ebx
jb 0x48060b
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.004c8f17
add esp, 4
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004c8f08
mov esp, ebp
pop ebp
ret