Function at 0x425bd0
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x518363
push eax
mov dword fs:[0], esp
sub esp, 0x820
push ebx
push ebp
push esi
mov esi, dword [esp + 0x83c]
mov ebp, ecx
push edi
push esi
mov ecx, 0x5b7674
call fcn.004fc13e
mov eax, dword [ebp + 0x1816c]
xor ebx, ebx
push ebx
push 9
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
jne 0x425c25
xor al, al
jmp 0x4262c1
push ebx
push eax
mov ecx, ebp
call fcn.0040e9c0
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x24], edi
jne 0x425c3f
xor al, al
jmp 0x4262c1
push ebx
push esi
call fcn.004b6d67
add esp, 8
cmp eax, 0xffffffff
je 0x425cb0
push 2
push esi
call fcn.004b6d67
add esp, 8
cmp eax, 0xffffffff
jne 0x425cb0
mov ecx, dword [0x54de98]
mov dword [esp + 0x14], ecx
push esi
lea edx, [esp + 0x18]
push str.The_library_file___s__is_read_only_
push edx
mov dword [esp + 0x844], ebx
call fcn.004f581b
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, ebp
push 0x30
push str.Script_Library_File_Not_Writeable_
push eax
call fcn.004f9e76
lea ecx, [esp + 0x14]
mov dword [esp + 0x838], 0xffffffff
call fcn.004fc001
xor al, al
jmp 0x4262c1
push 0x53c2a0
push esi
call fcn.004ca1f0
mov esi, eax
push 0x53f518
push str.DExport.tmp
mov dword [esp + 0x30], esi
call fcn.004ca1f0
add esp, 0x10
cmp eax, ebx
mov dword [0x5b766c], eax
jne 0x425d72
mov eax, dword [0x54de98]
mov dword [esp + 0x18], eax
mov dword [esp + 0x838], 1
mov dword [esp + 0x14], eax
push str.DExport.tmp
lea ecx, [esp + 0x1c]
push str.ERROR:_Unable_to_open__s_for_output.
push ecx
mov byte [esp + 0x844], 2
call fcn.004f581b
lea edx, [esp + 0x20]
push str.Temp_File_Save_Error_
push edx
call fcn.004f581b
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add esp, 0x14
push 0x30
push eax
push ecx
mov ecx, ebp
call fcn.004f9e76
cmp esi, ebx
je 0x425d46
push esi
call fcn.004ca330
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x838], 1
call fcn.004fc001
lea ecx, [esp + 0x18]
mov dword [esp + 0x838], 0xffffffff
call fcn.004fc001
xor al, al
jmp 0x4262c1
cmp esi, ebx
jne 0x425da1
push str._____________________________________________________________________
call fcn.00409c00
push str.___D.A.L.L.A.S._Generated_Script_Library_File
call fcn.00409c00
push str._____________________________________________________________________
call fcn.00409c00
push 0x53f490
call fcn.00409c00
add esp, 0x10
mov dword [esp + 0x2c], ebx
cmp esi, ebx
mov ebx, dword [esp + 0x844]
mov byte [esp + 0x13], 0
mov byte [esp + 0x1f], 0
je 0x426120
push esi
call fcn.004ca4f0
add esp, 4
test eax, eax
jne 0x426114
mov edi, 0x5b764c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x30]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
push ecx
push 0x800
push edx
call fcn.004ca690
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x3c]
push eax
call fcn.00428020
lea ecx, [esp + 0x40]
push ecx
call fcn.00428060
mov edx, eax
mov edi, str.__SCRIPT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__SCRIPT
push edx
call fcn.004b6860
add esp, 0x20
lea edx, [esp + 0x30]
test eax, eax
push edx
jne 0x42608e
push 0x53d830
call fcn.00409c00
add esp, 8
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x20]
push eax
call fcn.004ca4f0
add esp, 4
test eax, eax
jne 0x4260a4
mov edi, 0x5b764c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x30]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
push ecx
push 0x800
push edx
call fcn.004ca690
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x3c]
inc edx
push eax
mov dword [esp + 0x3c], edx
call fcn.00428020
lea ecx, [esp + 0x40]
push ecx
call fcn.00428060
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x426054
push 2
push 0x53c258
push esi
call fcn.004b6860
add esp, 0xc
test eax, eax
je 0x426054
mov edi, str.__END
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__END
push esi
call fcn.004b6860
add esp, 0xc
test eax, eax
je 0x426077
mov eax, dword [esp + 0x28]
xor edi, edi
cmp eax, edi
jne 0x426031
push ebx
push esi
call fcn.004c1d80
add esp, 8
test eax, eax
jne 0x426012
mov eax, dword [0x54de98]
mov dword [esp + 0x14], eax
mov dword [esp + 0x838], 3
mov dword [esp + 0x18], eax
push ebx
lea edx, [esp + 0x18]
push str.A_script_named__s_already_exists_in_this_library._n_nWould_you_like_to_replace_it_with_your_new_script_
push edx
mov byte [esp + 0x844], 4
call fcn.004f581b
lea eax, [esp + 0x24]
push str.Duplicate_Script_Name_Encountered
push eax
call fcn.004f581b
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
add esp, 0x14
push 0x24
push ecx
push edx
mov ecx, ebp
call fcn.004f9e76
cmp eax, 7
je 0x4260bf
push ebx
push 0x53d830
call fcn.00409c00
push 3
push str.VERSION_t_t_d
call fcn.00409c00
mov esi, dword [esp + 0x34]
add esp, 0x10
mov ecx, ebp
mov dword [0x5b7658], edi
push 1
push esi
call fcn.0041d530
push 1
push esi
mov ecx, ebp
call fcn.0041d470
lea ecx, [esp + 0x18]
mov byte [esp + 0x13], 1
mov byte [esp + 0x838], 3
call fcn.004fc001
lea ecx, [esp + 0x14]
mov dword [esp + 0x838], 0xffffffff
call fcn.004fc001
mov dword [esp + 0x28], 1
jmp 0x425e66
lea eax, [esp + 0x30]
push eax
push 0x53d830
call fcn.00409c00
add esp, 8
mov dword [esp + 0x28], 1
jmp 0x425e66
mov al, byte [esp + 0x13]
test al, al
jne 0x425e66
lea ecx, [esp + 0x30]
push ecx
push 0x53d830
call fcn.00409c00
add esp, 8
jmp 0x425e66
mov al, byte [esp + 0x13]
test al, al
jne 0x425e66
lea edx, [esp + 0x30]
push edx
push 0x53d830
call fcn.00409c00
add esp, 8
jmp 0x425e66
mov al, byte [esp + 0x13]
test al, al
je 0x426089
mov byte [esp + 0x1f], 1
mov byte [esp + 0x13], 0
lea eax, [esp + 0x30]
push eax
push 0x53d830
call fcn.00409c00
mov esi, dword [esp + 0x28]
add esp, 8
jmp 0x425dbe
mov ecx, dword [esp + 0x2c]
push 0
push 0
push ecx
push 0
mov ecx, ebp
call fcn.00416010
mov esi, dword [esp + 0x20]
jmp 0x425dbe
mov eax, dword [esp + 0x20]
push eax
call fcn.004ca330
mov ecx, dword [0x5b766c]
push ecx
call fcn.004ca330
push str.DExport.tmp
mov dword [0x5b766c], edi
call fcn.004e46e0
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x838], 3
call fcn.004fc001
lea ecx, [esp + 0x14]
mov dword [esp + 0x838], 0xffffffff
call fcn.004fc001
xor al, al
jmp 0x4262c1
mov al, byte [esp + 0x1f]
test al, al
jne 0x426183
mov edi, dword [esp + 0x24]
push str.__SCRIPT
push 0x53d830
call fcn.00409c00
push ebx
push 0x53d830
call fcn.00409c00
push 3
push str.VERSION_t_t_d
call fcn.00409c00
add esp, 0x18
mov ecx, ebp
mov dword [0x5b7658], 0
push 1
push edi
call fcn.0041d530
push 1
push edi
mov ecx, ebp
call fcn.0041d470
push str.__END
push 0x53d830
call fcn.00409c00
push 0x53f490
call fcn.00409c00
add esp, 0xc
test esi, esi
je 0x426190
push esi
call fcn.004ca330
add esp, 4
mov edx, dword [0x5b766c]
push edx
call fcn.004ca330
mov esi, dword [esp + 0x844]
mov dword [0x5b766c], 0
push esi
call fcn.004e46e0
add esp, 8
push 0
push esi
push str.DExport.tmp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
mov eax, dword [0x54de98]
jne 0x42623e
mov dword [esp + 0x18], eax
mov ebx, 5
mov dword [esp + 0x14], eax
mov dword [esp + 0x838], ebx
lea eax, [esp + 0x18]
push str.ERROR:_Could_not_copy_over_temporary_library_file._n_nThe_export_failed.
push eax
mov byte [esp + 0x840], 6
call fcn.004f581b
lea ecx, [esp + 0x1c]
push str.Script_Export_Error_
push ecx
call fcn.004f581b
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add esp, 0x10
mov ecx, ebp
push 0x30
push edx
push eax
call fcn.004f9e76
lea ecx, [esp + 0x14]
mov byte [esp + 0x838], bl
call fcn.004fc001
mov dword [esp + 0x838], 0xffffffff
lea ecx, [esp + 0x18]
jmp 0x4262ad
mov dword [esp + 0x28], eax
mov dword [esp + 0x838], 7
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x28]
push str.The_script_was_exported_successfully_
push ecx
mov byte [esp + 0x840], 8
call fcn.004f581b
lea edx, [esp + 0x2c]
push str.Script_Export_Successful
push edx
call fcn.004f581b
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
add esp, 0x10
push 0x40
push eax
push ecx
mov ecx, ebp
call fcn.004f9e76
lea ecx, [esp + 0x24]
mov byte [esp + 0x838], 7
call fcn.004fc001
mov dword [esp + 0x838], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004fc001
push str.DExport.tmp
call fcn.004e46e0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x830]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x82c
ret 8