Function at 0x408960
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x414
push ebx
push esi
mov eax, dword [ecx + 0x2c]
push edi
push ebp
mov esi, ecx
push 0x64
push eax
call dword [sym.imp.USER32.dll_KillTimer]
cmp dword [esi + 0x45c], 0
jne 0x40898f
cmp dword [esi + 0x460], 0
mov ebx, 0
je 0x408994
mov ebx, 1
test ebx, ebx
je 0x408c1a
push 1
mov ecx, esi
push 0
call fcn.00409fb0
mov eax, dword [esi + 0x828]
test eax, eax
je 0x408bb4
test byte [esi + 0x50b], 0x10
jne 0x408bb4
push eax
mov ecx, esi
call fcn.00408f90
push 2
mov eax, dword [esi + 0x830]
push 0
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push eax
call ebp
xor eax, eax
mov ax, word [esi + 0x7f8]
push eax
xor eax, eax
mov ax, word [esi + 0x7f6]
push eax
xor eax, eax
mov ax, word [esi + 0x7f4]
push eax
xor eax, eax
mov ax, word [esi + 0x7f2]
push eax
xor eax, eax
mov ax, word [esi + 0x7ee]
lea ecx, [esp + 0x34]
push eax
xor eax, eax
mov ax, word [esi + 0x7ec]
push eax
push str.__________________________________________________r_nFastCopy_start_at__d__02d__02d__02d:_02d:_02d_r_n_r_n
push ecx
call dword [sym.imp.MSVCRT40.dll_sprintf]
mov dword [esp + 0x30], eax
add esp, 0x20
lea eax, [esp + 0x10]
push 0
mov ecx, dword [esp + 0x14]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
mov eax, dword [esi + 0x830]
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
call ebp
mov edx, dword [esi + 0x82c]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [esi + 0x830]
push edx
call ebp
mov eax, dword [esi + 0x824]
test eax, eax
jne 0x408ac6
mov eax, dword [str._No_Errors_r_n_r_n]
mov edi, dword [0x41561c]
mov edx, str._No_Errors_r_n_r_n
lea ecx, [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [edx + 8]
push 0
mov dword [ecx + 4], edi
mov di, word [edx + 0xc]
mov dword [ecx + 8], eax
mov word [ecx + 0xc], di
mov dl, byte [edx + 0xe]
lea eax, [esp + 0x14]
mov byte [ecx + 0xe], dl
lea ecx, [esp + 0x18]
push eax
push 0xe
mov edx, dword [esi + 0x830]
push ecx
push edx
jmp 0x408b14
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
mov eax, dword [esi + 0x8c0]
mov ecx, dword [esi + 0x830]
mov edx, dword [eax]
push edx
push ecx
call ebp
lea ecx, [esp + 0x24]
push str._r_n_r_n
push 0x415628
push ecx
call dword [sym.imp.MSVCRT40.dll_sprintf]
mov dword [esp + 0x1c], eax
add esp, 0xc
lea eax, [esp + 0x10]
push 0
mov ecx, dword [esp + 0x14]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
mov eax, dword [esi + 0x830]
push eax
call ebp
mov eax, dword [esi]
push 0x400
lea ecx, [esp + 0x28]
mov edi, dword [eax + 0x90]
push ecx
push 0x3f7
mov ecx, esi
call edi
lea ecx, [esp + eax + 0x24]
push str._r_n_r_nResult_:
mov dword [esp + 0x14], eax
push 0x415628
push ecx
call dword [sym.imp.MSVCRT40.dll_sprintf]
add dword [esp + 0x1c], eax
add esp, 0xc
mov eax, 0x400
mov ecx, dword [esp + 0x10]
sub eax, dword [esp + 0x10]
lea edx, [esp + ecx + 0x24]
push eax
mov ecx, esi
push edx
push 0x408
call edi
add dword [esp + 0x10], eax
push str._r_n_r_n
mov ecx, dword [esp + 0x14]
push 0x415628
lea edx, [esp + ecx + 0x2c]
push edx
call dword [sym.imp.MSVCRT40.dll_sprintf]
lea ecx, [esp + 0x1c]
add dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x30]
add esp, 0xc
push 0
push ecx
push edx
mov ecx, dword [esi + 0x830]
push eax
push ecx
call ebp
push 0
mov ecx, esi
call fcn.00408f90
mov eax, dword [esi]
push 0
mov edi, dword [eax + 0xa8]
mov eax, dword [esi + 0x508]
and eax, 0x10000000
mov ecx, esi
shr eax, 0x1c
cmp eax, 1
sbb eax, eax
and eax, 0xfffffbd8
add eax, 0x429
push eax
call edi
push eax
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
call ebp
lea ecx, [esi + 0x38]
call fcn.00410ed0
push 1
mov eax, dword [esi + 0x508]
and eax, 0x10000000
mov ecx, esi
shr eax, 0x1c
cmp eax, 1
sbb eax, eax
and eax, 0xfffffbd8
add eax, 0x429
push eax
call edi
push eax
call ebp
jmp 0x408c32
push str.______Canceled._____
mov eax, dword [esi]
push 0
mov ecx, esi
push 0xc
push 0x3f7
call dword [eax + 0xd8]
mov eax, dword [esi + 0x82c]
push eax
call sub.MSVCRT40.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x82c], 0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [esi + 0x508]
push 0
and ebp, 0x10000000
mov dword [esi + 0x7fc], eax
shr ebp, 0x1c
mov eax, dword [esi]
cmp ebp, 1
mov edi, dword [eax + 0x98]
sbb eax, eax
and eax, 0xffffffd6
add eax, 0x46
push eax
call fcn.0040ae90
add esp, 8
mov ecx, esi
cmp ebp, 1
push eax
sbb eax, eax
and eax, 0xfffffbd8
add eax, 0x429
push eax
call edi
push 0x4155d0
mov ecx, esi
push 0x3fb
call edi
mov eax, dword [esi + 0x5c8]
cmp eax, 2
je 0x408ccd
cmp eax, 1
jne 0x408cdd
test ebx, ebx
je 0x408ccd
cmp dword [esi + 0x894], 0
jne 0x408cdd
cmp dword [esi + 0x898], 0
jne 0x408cdd
push 0
mov ecx, esi
push 0
mov eax, dword [esi]
push 0x10
call dword [eax + 0xc8]
mov dword [esi + 0x5c8], 0
mov ecx, esi
call fcn.00407580
mov ecx, esi
call fcn.0040ab80
cmp dword [esi + 0x5cc], 0
je 0x408d1d
push 0x415554
mov ecx, esi
mov dword [esi + 0x7e4], 0
mov eax, dword [esi + 0x5b4]
push eax
push 1
call fcn.00409f00
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x414
ret