Function at 0x405070
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [esp], 0
call sub.cygwin1.dll_time
mov dword [esp + 4], 0x451468
mov dword [0x473074], eax
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call sub.cygwin1.dll__fopen64
test eax, eax
je 0x4052ca
mov dword [esp + 0xc], eax
mov edi, eax
mov dword [esp + 8], 0x13
mov dword [esp + 4], 1
mov dword [esp], str._HTTP_Cookie_File_n
call sub.cygwin1.dll_fwrite
mov eax, dword [0x473074]
mov dword [esp], eax
call fcn.0042b760
mov dword [esp + 4], str._Generated_by_Wget_on__s._n
mov dword [esp + 8], eax
mov dword [esp], edi
call sub.cygwin1.dll_fprintf
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x1a
mov dword [esp + 4], 1
mov dword [esp], str._Edit_at_your_own_risk._n_n
call sub.cygwin1.dll_fwrite
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.0040f2d0
lea eax, [esp + 0x40]
mov dword [esp], eax
call fcn.0040f2f0
test eax, eax
je 0x40521e
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
test ebx, ebx
je 0x40511d
mov esi, str.FALSE
jmp 0x4051e1
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.cygwin1.dll_fputs
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x40517c
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4514b5
mov dword [esp], edi
call sub.cygwin1.dll_fprintf
movzx eax, byte [ebx + 0xc]
mov ecx, str.TRUE
fild dword [ebx + 0x10]
mov ebp, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
test al, 2
cmove ecx, esi
test al, 4
mov eax, str.TRUE
cmovne eax, esi
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str._t_s_t_s_t_s_t_.0f_t_s_t_s_n
mov dword [esp], edi
fstp qword [esp + 0x14]
call sub.cygwin1.dll_fprintf
test byte [edi + 0xc], 0x40
jne 0x405228
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
je 0x40511d
movzx eax, byte [ebx + 0xc]
test al, 8
jne 0x4051f2
cmp byte [0x476109], 0
je 0x4051d6
mov edx, dword [ebx + 0x10]
test edx, edx
je 0x405201
cmp edx, dword [0x473074]
jl 0x4051d6
test al, 4
jne 0x405150
mov dword [esp + 4], edi
mov dword [esp], 0x2e
call sub.cygwin1.dll_fputc
jmp 0x405150
test byte [edi + 0xc], 0x40
je 0x40526b
lea esi, [esi]
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov esi, eax
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.00439a30
mov dword [esp], str.Error_writing_to__s:__s_n
mov ebx, eax
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], 1
call fcn.0041d940
mov dword [esp], edi
call sub.cygwin1.dll_fclose
test eax, eax
js 0x40527f
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov esi, eax
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.00439a30
mov dword [esp], str.Error_closing__s:__s_n
mov ebx, eax
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], 1
call fcn.0041d940
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov esi, eax
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.00439a30
mov dword [esp], str.Cannot_open_cookies_file__s:__s_n
mov ebx, eax
jmp 0x4052a5