Function at 0x415780
Capabilities:
Copy file

Disassembly:
mov eax, dword [0x447e38]
sub esp, 0x508
add eax, 0x5db8
lea ecx, [esp + 0x208]
push esi
push edi
push 0x100
push eax
push ecx
call fcn.004166c0
push 0x100
lea edx, [esp + 0x220]
push str.Accept
push edx
call fcn.00416770
mov eax, dword [0x447e38]
push 0x100
add eax, 0x5bb8
lea ecx, [esp + 0x22c]
push eax
push ecx
call fcn.00416770
mov edx, dword [0x447e38]
push 0x100
add edx, 0x5db8
lea eax, [esp + 0x438]
push edx
push eax
call fcn.004166c0
push 0x100
lea ecx, [esp + 0x444]
push 0x442438
push ecx
call fcn.00416770
mov edx, dword [0x447e38]
push 0x100
add edx, 0x5bb8
lea eax, [esp + 0x450]
push edx
push eax
call fcn.00416770
mov ecx, dword [0x447e38]
add esp, 0x48
add ecx, 0x5db8
lea edx, [esp + 0x310]
push 0x100
push ecx
push edx
call fcn.004166c0
push 0x100
lea eax, [esp + 0x320]
push str.Current
push eax
call fcn.00416770
mov ecx, dword [0x447e38]
push 0x100
add ecx, 0x5bb8
lea edx, [esp + 0x32c]
push ecx
push edx
call fcn.00416770
mov eax, dword [0x447e38]
add esp, 0x24
test eax, eax
je 0x415a11
mov ecx, dword [eax + 0x5ebc]
test ecx, ecx
je 0x415a11
push 0x4463c5
mov byte [0x4463c4], 0x4e
call fcn.004147d0
mov edi, 0x4463c4
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0x200
push str.filename_accept
push 0x442414
sub eax, ecx
push 0x440ae4
push eax
mov edi, 0x4463c4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, 0x4463c4
push ecx
call fcn.0041f19c
lea ecx, [esp + 0x224]
push 0x4463c4
push ecx
mov edi, 0x4463c4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, 0x4463c4
push ecx
call fcn.00414880
mov eax, dword [0x447e38]
add esp, 0x20
mov cl, byte [eax + 0x5ec0]
lea edi, [eax + 0x5ec0]
test cl, cl
je 0x4159fd
mov ax, word [0x440ae0]
mov edx, dword [str.hh.mm]
mov word [esp + 0xc], ax
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 8], edx
mov word [esp + 0xe], 0
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov dx, word [0x4463c8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov cx, word [0x4463c5]
push str.time
mov word [esp + 0x10], cx
lea ecx, [esp + 0x18]
push ecx
mov word [esp + 0x17], dx
call fcn.00417780
lea edx, [esp + 0x1c]
push 0x4409c4
push edx
call fcn.0041f85a
mov esi, eax
add esp, 0x14
test esi, esi
je 0x415a11
push esi
push 0x4463c4
call fcn.0041f6fc
mov edi, 0x4463c4
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + 0x4463c3], 0xa
je 0x4159f2
push esi
push 0x440ad0
call fcn.0041f6fc
add esp, 8
push esi
call fcn.0041f74a
add esp, 4
jmp 0x415a11
mov eax, dword [eax + 0x72b4]
push 0x4463c4
push eax
call fcn.00408560
add esp, 8
push 0
push 0
push 1
lea ecx, [esp + 0x31c]
push 0x440e4c
push ecx
call fcn.004072e0
add esp, 0x14
test eax, eax
jne 0x415a59
push eax
push str.Script_not_yet_tested
lea edx, [esp + 0x318]
mov eax, dword [0x447e38]
push edx
mov ecx, dword [eax + 0x72a8]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
add esp, 0x508
ret
push eax
call fcn.0041f74a
lea edx, [esp + 0x414]
push edx
call fcn.00420374
add esp, 8
lea eax, [esp + 0x210]
lea ecx, [esp + 0x310]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x415a9a
push eax
push str.File_handling_error__file_locked__
lea edx, [esp + 0x218]
jmp 0x415a3d
mov eax, dword [0x4423c8]
mov ecx, dword [0x4423cc]
mov edx, dword [str.]
mov dword [esp + 0x14], eax
mov ax, word [0x4423d4]
mov dword [esp + 0x18], ecx
mov cl, byte [0x4423d6]
mov dword [esp + 0x10], edx
mov edx, dword [0x4423d0]
mov word [esp + 0x20], ax
mov byte [esp + 0x22], cl
mov ecx, 0x7b
xor eax, eax
lea edi, [esp + 0x23]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [0x447e38]
push edx
stosb byte es:[edi], al
mov eax, dword [0x44856c]
mov edx, dword [ecx + 0x72bc]
push eax
push edx
call fcn.004085a0
movsx eax, byte [esp + 0x1f]
push eax
call fcn.0042085a
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x10
test eax, eax
je 0x415b5a
mov edx, dword [0x447e38]
mov ecx, dword [0x44856c]
mov byte [esp + 0x10], 0x2b
push 0
mov eax, dword [edx + 0x72bc]
push ecx
push 0x182
push eax
call esi
mov eax, dword [0x447e38]
mov edx, dword [0x44856c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [eax + 0x72bc]
push edx
push 0x181
push ecx
call esi
mov edx, dword [0x44856c]
mov eax, dword [0x447e38]
inc edx
push 0
mov ecx, dword [eax + 0x72bc]
push edx
push 0x186
push ecx
call esi
cmp eax, 0xffffffff
je 0x415b91
mov eax, dword [0x44856c]
inc eax
mov dword [0x44856c], eax
inc eax
push eax
call fcn.00415210
add esp, 4
pop edi
pop esi
add esp, 0x508
ret