Function at 0x402e10
Capabilities:
Move file
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov eax, 0x1468
call fcn.0044baa0
sub esp, eax
mov eax, dword [esp + eax]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
test eax, eax
je 0x403220
mov dword [esp], eax
mov ebx, eax
call fcn.0040f330
mov dword [esp + 0x40], eax
test eax, eax
je 0x403220
cmp eax, 0x400
jg 0x4036e4
lea esi, [esp + 0x460]
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.0042c650
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], esi
test eax, eax
jle 0x403220
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x2c]
mov edi, dword [eax + edi*4]
mov eax, dword [0x473070]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0040ed10
test eax, eax
je 0x4031f6
mov edx, dword [esp + 0x48]
test edx, edx
je 0x403498
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0040b370
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4034c4
mov ebx, eax
jmp 0x402ede
mov dword [ebx + 0x10], 4
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
je 0x402f50
test byte [ebx + 8], 8
jne 0x402ed0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x476164
mov dword [esp + 4], 0
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00427d40
mov esi, eax
test eax, eax
je 0x402ed7
mov eax, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [0x473060]
mov dword [esp], eax
call fcn.0040ed10
test eax, eax
je 0x403460
movzx edx, byte [0x47609d]
add edx, 1
mov dword [ebx + 0x10], edx
mov dword [esp], eax
call fcn.00447e10
mov dword [ebx + 4], eax
mov dword [esp], esi
call fcn.00426d90
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x402ede
mov dword [esp], str.Converting_links_in__s...
xor ebx, ebx
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.0041d940
mov eax, dword [esp + 0x30]
lea esi, [esi]
lea esi, [esi]
cmp dword [eax + 0x10], 1
mov eax, dword [eax + 0x1c]
sbb ebx, 0xffffffff
test eax, eax
jne 0x402f80
test ebx, ebx
je 0x4034e4
mov dword [esp], str._d._n
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.0041d940
mov dword [esp], edi
call fcn.0042c220
mov dword [esp + 0x3c], eax
test eax, eax
je 0x4035e8
mov eax, dword [0x473068]
test eax, eax
je 0x4030a0
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0040ed10
test eax, eax
je 0x4030a0
cmp byte [0x47608e], 0
mov ebx, dword [eax]
je 0x4030a0
test ebx, ebx
je 0x4030a0
mov eax, dword [0x47306c]
test eax, eax
je 0x403773
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0042c640
test eax, eax
jne 0x4030a0
mov dword [esp], edi
lea ebp, [esp + 0x60]
call sub.cygwin1.dll_strlen
mov esi, eax
cmp eax, 0x3fa
ja 0x4037b6
cmp ebx, 2
je 0x403792
mov dword [esp + 8], esi
add esi, ebp
mov dword [esp + 4], edi
mov dword [esp], ebp
call sub.cygwin1.dll_memcpy
mov eax, 0x67
mov dword [esi], 0x69726f2e
mov word [esi + 4], ax
mov dword [esp + 4], ebp
mov dword [esp], edi
call sub.cygwin1.dll_rename
test eax, eax
jne 0x4037c8
lea eax, [esp + 0x60]
cmp ebp, eax
je 0x40308a
mov dword [esp], ebp
call fcn.004376c0
mov eax, dword [0x47306c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0042c600
lea esi, [esi]
nop
mov dword [esp], edi
call sub.cygwin1.dll_unlink
test eax, eax
js 0x403508
mov dword [esp + 4], 0x45130e
mov dword [esp], edi
call sub.cygwin1.dll__fopen64
mov dword [esp + 0x38], eax
test eax, eax
je 0x403720
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x58], edi
mov ebx, edx
nop
mov ecx, dword [ebp + 0x14]
cmp ecx, eax
jge 0x40319b
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x403190
lea eax, [edx + ecx]
mov esi, dword [esp + 0x38]
mov dword [esp + 4], 1
mov dword [esp + 0x34], eax
sub eax, ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp], ebx
call sub.cygwin1.dll_fwrite
cmp dword [ebp + 0x10], 4
ja case.default.0x403138
mov eax, dword [ebp + 0x10]
jmp dword [eax*4 + 0x451338]
mov eax, dword [ebp]
mov esi, dword [eax]
mov dword [esp], esi
call fcn.00402b30
mov edi, eax
test byte [ebp + 8], 0x60
jne 0x403670
mov edx, dword [ebp + 0x18]
test byte [ebp + 9], 2
jne 0x403650
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
call fcn.004023b0
mov ebx, eax
mov dword [esp], edi
call fcn.004376c0
mov eax, dword [esp + 0x3c]
add dword [esp + 0x54], 1
mov edx, dword [eax]
mov eax, dword [eax + 4]
nop
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
jne 0x4030f0
mov ecx, ebx
sub ecx, edx
cmp ecx, eax
jl 0x4035c0
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.cygwin1.dll_fclose
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.0042c430
mov eax, dword [esp + 0x54]
mov dword [esp + 4], str._d__d_n
mov dword [esp], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
call fcn.0041d940
mov eax, dword [esp + 0x4c]
add dword [eax], 1
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00425c00
add dword [esp + 0x2c], 1
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], eax
jg 0x402e80
mov edi, dword [esp + 0x44]
lea eax, [esp + 0x460]
cmp edi, eax
je 0x403220
mov dword [esp], edi
call fcn.004376c0
add esp, 0x146c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x34]
mov eax, dword [ebp + 0x18]
movzx edx, byte [ecx]
cmp dl, 0x22
je 0x403570
cmp dl, 0x27
je 0x403570
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00447ed0
mov dword [esp + 4], 0x2f
mov dword [esp], eax
mov edi, eax
mov ebx, edi
call sub.cygwin1.dll_strrchr
lea esi, [eax + 1]
test eax, eax
mov eax, dword [ebp + 4]
cmove esi, edi
test eax, eax
je 0x403293
mov dword [esp + 4], 0x2f
mov dword [esp], eax
call sub.cygwin1.dll_strrchr
lea ebx, [eax + 1]
test eax, eax
cmove ebx, edi
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x4036b0
movzx edx, byte [ebp + 8]
mov eax, edi
shr dl, 5
and edx, 1
call fcn.00402c50
mov esi, eax
test byte [ebp + 8], 0x60
jne 0x403690
mov edx, dword [ebp + 0x18]
test byte [ebp + 9], 2
jne 0x403628
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
call fcn.004023b0
mov ebx, eax
mov dword [esp], edi
call fcn.004376c0
mov dword [esp], esi
call fcn.004376c0
mov eax, dword [esp + 0x3c]
add dword [esp + 0x50], 1
mov edx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x403190
mov edi, dword [ebp + 4]
test edi, edi
je case.default.0x403138
mov ecx, dword [esp + 0x58]
movzx eax, byte [ecx]
cmp byte [edi], al
jne 0x403789
test al, al
je 0x403789
mov dword [esp + 0x5c], edi
mov ebx, edi
mov edx, ecx
xor esi, esi
mov edi, ecx
jmp 0x403344
test al, al
je 0x40335d
mov ecx, edx
sub ecx, edi
add ecx, 1
cmp al, 0x2f
cmove esi, ecx
add ebx, 1
add edx, 1
movzx eax, byte [edx]
cmp byte [ebx], al
je 0x403340
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
lea edx, [eax + esi]
add edi, esi
movzx eax, byte [edx]
test al, al
je 0x403394
xor ecx, ecx
lea esi, [esi]
nop
cmp al, 0x2f
sete al
add edx, 1
movzx eax, al
add ecx, eax
movzx eax, byte [edx]
test al, al
jne 0x403378
test ecx, ecx
jne 0x40357f
mov dword [esp + 4], 0x451319
mov dword [esp], edi
call sub.cygwin1.dll_strpbrk
mov dword [esp], edi
mov ebx, eax
call sub.cygwin1.dll_strlen
test ebx, ebx
je 0x4033bb
cmp byte [ebx], 0x3a
je 0x40374a
add eax, 1
mov dword [esp], eax
call fcn.00447900
mov esi, eax
mov ebx, eax
lea esi, [esi]
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.cygwin1.dll_strcpy
movzx edx, byte [ebp + 8]
mov eax, esi
shr dl, 5
and edx, 1
call fcn.00402c50
mov edi, eax
test byte [ebp + 8], 0x60
jne 0x403704
mov edx, dword [ebp + 0x18]
test byte [ebp + 9], 2
je 0x4036cd
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x38]
mov dword [esp], edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
call fcn.004024c0
mov ebx, eax
mov dword [esp], esi
call fcn.004376c0
mov dword [esp], edi
jmp 0x4032ee
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x38]
mov dword [esp], 0x451311
mov eax, dword [esp + 0x34]
call fcn.004023b0
mov ebx, eax
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x403190
test byte [ebx + 8], 4
jne 0x402f3e
mov dword [ebx + 0x10], 3
jmp 0x402f3e
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
mov edx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x403190
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00412cf0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x402ecc
mov dword [esp], str.Converting_links_in__s...
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.0041d940
mov dword [esp], str.nothing_to_do._n
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0041d620
jmp 0x4031e3
call sub.cygwin1.dll___errno
cmp dword [eax], 2
je 0x4030b0
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp], edi
mov esi, eax
call fcn.00439a30
mov dword [esp], str.Unable_to_delete__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 eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.0042c430
jmp 0x4031e3
mov edi, dword [esp + 0x34]
sub eax, 2
lea ecx, [edi + 1]
jmp 0x40324c
mov dword [esp], edi
lea ebx, [ecx + ecx*2]
call sub.cygwin1.dll_strlen
lea eax, [ebx + eax + 1]
mov dword [esp], eax
call fcn.00447900
mov esi, eax
add ebx, eax
lea esi, [esi]
mov edx, 0x2e2e
mov byte [eax + 2], 0x2f
add eax, 3
mov word [eax - 3], dx
cmp ebx, eax
jne 0x4035a0
jmp 0x4033d0
mov edi, dword [esp + 0x38]
sub eax, ecx
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp], ebx
call sub.cygwin1.dll_fwrite
jmp 0x4031a7
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 dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 1
call fcn.0041d940
jmp 0x4031e3
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x38]
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
call fcn.004024c0
mov ebx, eax
jmp 0x4032e3
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x38]
mov dword [esp], edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
call fcn.004024c0
mov ebx, eax
jmp 0x403178
mov eax, dword [esp + 0x38]
mov ebx, dword [ebp + 0x18]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygwin1.dll_fputs
add ebx, dword [esp + 0x34]
jmp 0x403178
mov eax, dword [esp + 0x38]
mov ebx, dword [ebp + 0x18]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygwin1.dll_fputs
add ebx, dword [esp + 0x34]
jmp 0x4032e3
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.004275d0
mov dword [esp], edi
mov ebx, eax
mov edi, ebx
call fcn.004376c0
jmp 0x4032a7
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
call fcn.004023b0
mov ebx, eax
jmp 0x40341f
shl eax, 2
mov dword [esp], eax
call fcn.00447900
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 0x44], eax
call fcn.0042c650
jmp 0x402e78
mov eax, dword [esp + 0x38]
mov ebx, dword [ebp + 0x18]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.cygwin1.dll_fputs
add ebx, dword [esp + 0x34]
jmp 0x40341f
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 dword [esp + 8], edi
jmp 0x403545
add eax, 3
mov dword [esp], eax
call fcn.00447900
mov ecx, 0x2f2e
mov word [eax], cx
mov esi, eax
lea eax, [eax + 2]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.cygwin1.dll_strcpy
jmp 0x4033dc
mov dword [esp], 0
call fcn.0040f340
mov dword [0x47306c], eax
jmp 0x40300f
mov edx, dword [esp + 0x58]
jmp 0x40336d
sub esi, 4
mov dword [esp + 4], edi
mov dword [esp + 8], esi
add esi, ebp
mov dword [esp], ebp
call sub.cygwin1.dll_memcpy
mov dword [esi], 0x6769726f
mov byte [esi + 4], 0
jmp 0x403066
lea eax, [eax + 6]
mov dword [esp], eax
call fcn.00447900
mov ebp, eax
jmp 0x40303c
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp], str.Cannot_back_up__s_as__s:__s_n
mov ebx, eax
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 1
call fcn.0041d940
jmp 0x40307a