Function at 0x402e70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov dword [ebp - 0x24], 0
call fcn.0041a650
mov dword [ebp - 0x28], eax
mov eax, dword [0x438920]
test eax, eax
jne 0x402e99
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
call fcn.0040ca10
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x402e91
lea eax, [eax*4 + 0x1e]
and eax, 0xfffffff0
call fcn.00422c50
lea eax, [esp + 0x27]
and eax, 0xfffffff0
mov dword [ebp - 0x30], eax
mov dword [esp + 4], eax
mov eax, dword [0x438920]
mov dword [esp], eax
call fcn.00421aa0
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x2c]
cmp dword [ebp - 0x24], edx
jge 0x403001
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
mov eax, dword [0x4300d0]
mov ecx, dword [ebx + ecx*4]
mov dword [esp], eax
mov dword [ebp - 0x38], ecx
mov dword [esp + 4], ecx
call fcn.0040c4b0
test eax, eax
mov ebx, eax
je 0x403105
mov edx, dword [0x438b14]
test edx, edx
jne 0x4035a7
mov dword [esp + 4], ebx
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call fcn.0040f010
mov dword [ebp - 0x34], eax
test eax, eax
mov ebx, eax
je 0x402f6a
lea esi, [esi]
lea edi, [edi]
test byte [ebx + 8], 8
mov edi, dword [ebx]
je 0x403070
mov dword [ebx + 0x10], 3
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x402f50
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov dword [esp], str.Converting__s...
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x38]
mov dword [esp], 0
mov dword [esp + 8], edx
call fcn.00417550
mov edx, dword [ebp - 0x34]
xor ecx, ecx
test edx, edx
je 0x402fc8
lea esi, [esi]
lea edi, [edi]
mov eax, dword [edx + 0x10]
mov edx, dword [edx + 0x1c]
cmp eax, 1
sbb ecx, 0xffffffff
test edx, edx
jne 0x402fb0
test ecx, ecx
jne 0x403130
mov dword [esp], str.nothing_to_do._n
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.004175f0
inc dword [ebp - 0x24]
mov ecx, dword [ebp - 0x34]
mov dword [esp], ecx
call fcn.0041cb60
inc dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
cmp dword [ebp - 0x14], ebx
jl 0x402ef0
mov edi, dword [ebp - 0x28]
mov dword [esp], edi
call fcn.0041a6f0
fdiv dword [0x428444]
mov dword [esp], edi
fstp qword [ebp - 0x20]
call fcn.0041a6e0
mov dword [esp], str.Converted__d_files_in__.f_seconds._n
call sub.cygintl_8.dll_libintl_gettext
fld qword [ebp - 0x20]
mov ecx, eax
fld qword [ebp - 0x20]
fxch st(1)
fstp qword [esp + 0x10]
fld dword [0x428448]
fucompp
fnstsw ax
sahf
ja 0x40323e
mov edx, 1
mov dword [esp + 0xc], edx
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [esp], 0
mov dword [esp + 8], eax
call fcn.00417550
jmp 0x402e91
mov eax, dword [edi]
mov dword [esp + 4], eax
mov eax, dword [0x438910]
mov dword [esp], eax
call fcn.0040c4b0
test eax, eax
mov esi, eax
je 0x4030c8
mov dword [ebx + 0x10], 1
mov dword [esp], eax
call fcn.00422880
mov dword [ebx + 4], eax
mov eax, dword [0x438b14]
test eax, eax
je 0x402f63
mov dword [esp + 8], esi
mov eax, dword [edi]
mov dword [esp], str.will_convert_url__s_to_local__s_n
mov dword [esp + 4], eax
call fcn.004174e0
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jmp 0x402f68
test byte [ebx + 8], 4
jne 0x4030d5
mov dword [ebx + 0x10], 2
mov dword [ebx + 4], 0
mov eax, dword [0x438b14]
test eax, eax
je 0x402f63
mov eax, dword [edi]
mov dword [esp], str.will_convert_url__s_to_complete_n
mov dword [esp + 4], eax
call fcn.004174e0
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jmp 0x402f68
mov ecx, dword [0x438b14]
test ecx, ecx
je 0x402ff2
mov dword [esp], str.Apparently__s_has_been_removed._n
mov ebx, dword [ebp - 0x38]
mov dword [esp + 4], ebx
call fcn.004174e0
jmp 0x402ff2
mov ecx, dword [ebp - 0x38]
mov dword [esp], ecx
call fcn.00421640
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x4033de
mov dword [esp], 3
mov edi, dword [ebp - 0x38]
mov dword [esp + 4], edi
call fcn.00402d80
mov ecx, eax
mov eax, dword [0x438b1c]
test eax, eax
setne al
xor edx, edx
test ecx, ecx
setne dl
test eax, edx
jne 0x4033a1
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.cygwin1.dll_unlink
test eax, eax
js 0x40341b
mov ebx, dword [ebp - 0x38]
mov eax, 0x42832d
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.cygwin1.dll__fopen64
mov dword [ebp - 0x40], eax
test eax, eax
je 0x40353f
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x34]
mov ebx, dword [edx]
test esi, esi
mov ecx, ebx
je 0x403534
mov edx, dword [edx + 4]
jmp 0x4031d6
mov edi, dword [0x438b14]
test edi, edi
jne 0x4035c3
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x403265
mov eax, dword [esi + 0x14]
lea edi, [ecx + eax]
cmp eax, edx
mov dword [ebp - 0x4c], edi
jge 0x403248
mov edi, dword [esi + 0x10]
test edi, edi
je 0x4031bd
mov dword [esp], ebx
mov eax, dword [ebp - 0x40]
mov edi, 1
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x4c]
sub eax, ebx
mov dword [esp + 8], eax
call sub.cygwin1.dll_fwrite
mov eax, dword [esi + 0x10]
mov ebx, dword [ebp - 0x4c]
cmp eax, 1
je 0x4032af
jb 0x4035e0
cmp eax, 2
je 0x4034c0
cmp eax, 3
je 0x403514
mov edx, dword [ebp - 0x3c]
mov edi, edx
mov ecx, dword [edx]
mov edx, dword [edi + 4]
jmp 0x4031cb
mov edx, 3
jmp 0x40304d
mov eax, dword [0x438b14]
test eax, eax
je 0x403265
mov dword [esp], str.Something_strange_is_going_on.__Please_investigate.
call fcn.004174e0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, ebx
sub eax, ecx
cmp eax, edx
jl 0x4033af
mov ebx, dword [ebp - 0x40]
mov dword [esp], ebx
call sub.cygwin1.dll_fclose
mov edi, dword [ebp - 0x3c]
mov dword [esp], edi
call fcn.00421840
mov dword [esp], 0
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov dword [esp + 0xc], eax
mov eax, str._d__d_n
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call fcn.00417550
jmp 0x402fe4
mov dword [ebp - 0x58], 0
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x50], eax
mov ecx, eax
movzx eax, byte [edx]
cmp al, byte [ecx]
je 0x403492
mov edi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x58]
add dword [ebp - 0x50], edi
xor edi, edi
lea edx, [eax + ecx]
jmp 0x4032ea
cmp al, 0x2f
sete al
movzx eax, al
add edi, eax
inc edx
movzx eax, byte [edx]
test al, al
jne 0x4032df
mov eax, dword [ebp - 0x50]
lea ebx, [edi + edi*2]
mov dword [esp], eax
call sub.cygwin1.dll_strlen
lea ebx, [ebx + eax + 1]
mov dword [esp], ebx
call fcn.004227b0
mov dword [ebp - 0x54], eax
xor edx, edx
cmp edx, edi
jge 0x40332e
xor eax, eax
mov edx, edi
mov ecx, dword [ebp - 0x54]
mov word [eax + ecx], 0x2e2e
mov byte [eax + ecx + 2], 0x2f
add eax, 3
dec edx
jne 0x403318
mov edx, edi
mov ebx, dword [ebp - 0x50]
lea eax, [edx + edx*2]
mov dword [esp + 4], ebx
mov ebx, dword [ebp - 0x54]
add eax, ebx
mov dword [esp], eax
call sub.cygwin1.dll_strcpy
mov eax, dword [ebp - 0x54]
call fcn.00402700
test byte [esi + 8], 0x40
mov edi, eax
jne 0x403471
mov edx, dword [esi + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov eax, dword [ebp - 0x4c]
call fcn.00402590
mov ecx, dword [0x438b14]
mov ebx, eax
test ecx, ecx
jne 0x4035e5
mov ecx, dword [ebp - 0x54]
mov dword [esp], ecx
call fcn.004228c0
mov dword [esp], edi
call fcn.004228c0
inc dword [ebp - 0x48]
mov edi, dword [ebp - 0x3c]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
jmp 0x4031cb
mov edx, ecx
mov eax, edi
call fcn.00402430
jmp 0x403174
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 0xc], edx
mov eax, dword [ecx]
mov edx, ebx
sub edx, eax
mov eax, dword [ecx + 4]
mov dword [esp], ebx
sub eax, edx
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.cygwin1.dll_fwrite
jmp 0x403271
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp], str.Cannot_convert_links_in__s:__s_n
mov ebx, eax
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 0xc], ebx
mov ebx, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], 1
mov dword [esp + 8], ebx
call fcn.00417550
jmp 0x402fe4
call sub.cygwin1.dll___errno
cmp dword [eax], 2
je 0x403187
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp], str.Unable_to_delete___s:__s_n
mov ebx, eax
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x38]
mov dword [esp + 0xc], ebx
mov dword [esp], 1
mov dword [esp + 8], edx
call fcn.00417550
mov ecx, dword [ebp - 0x3c]
mov dword [esp], ecx
call fcn.00421840
jmp 0x402fe4
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x18]
mov dword [esp + 4], edi
mov ecx, dword [ebp - 0x40]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], ecx
call fcn.00402670
jmp 0x40336e
test al, al
je 0x4032cc
mov ebx, 1
jmp 0x4034b7
inc edx
inc ecx
inc ebx
movzx eax, byte [edx]
cmp al, byte [ecx]
jne 0x4032cc
test al, al
je 0x4032cc
cmp al, 0x2f
jne 0x4034a1
mov dword [ebp - 0x58], ebx
jmp 0x4034a1
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
mov dword [esp], eax
call fcn.00402310
test byte [esi + 8], 0x40
mov edi, eax
jne 0x403587
mov edx, dword [esi + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov eax, ebx
call fcn.00402590
mov edx, dword [0x438b14]
mov ebx, eax
test edx, edx
jne 0x403613
mov dword [esp], edi
call fcn.004228c0
inc dword [ebp - 0x44]
mov edi, dword [ebp - 0x3c]
mov ecx, dword [edi]
jmp 0x403399
mov eax, 0x4283a7
mov edx, dword [esi + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov eax, ebx
call fcn.00402590
mov ebx, eax
jmp 0x403232
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 4]
jmp 0x403265
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp], str.Cannot_convert_links_in__s:__s_n
mov ebx, eax
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 4], eax
mov edi, dword [ebp - 0x38]
mov dword [esp + 0xc], ebx
mov dword [esp], 1
mov dword [esp + 8], edi
call fcn.00417550
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.00421840
jmp 0x402fe4
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x18]
mov dword [esp + 4], edi
mov ecx, dword [ebp - 0x40]
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], ecx
call fcn.00402670
jmp 0x4034ef
mov dword [esp + 8], eax
mov edi, dword [ebp - 0x38]
mov dword [esp], str.Scanning__s__from__s__n
mov dword [esp + 4], edi
call fcn.004174e0
jmp 0x402f25
mov dword [esp + 8], eax
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esp], str.Skipping__s_at_position__d._n
mov dword [esp + 4], eax
call fcn.004174e0
jmp 0x403232
call sub.cygwin1.dll_abort
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esp], str.TO_RELATIVE:__s_to__s_at_position__d_in__s._n
mov dword [esp + 4], eax
call fcn.004174e0
jmp 0x40337e
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x5c]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 4], edx
mov dword [esp], str.TO_COMPLETE:__something__to__s_at_position__d_in__s._n
mov dword [esp + 8], eax
call fcn.004174e0
jmp 0x4034ff