Function at 0x417ae0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24c
call sub.cygwin1.dll___getreent
mov ebp, dword [eax + 8]
mov eax, dword [esp + 0x260]
mov ebx, dword [eax + 0x1c0]
lea eax, [esp + 0x38]
mov dword [esp + 4], 0x400022
mov dword [esp + 8], eax
mov eax, dword [esp + 0x264]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call sub.cygcurl_4.dll_curl_easy_getinfo
test ebx, ebx
je 0x417baf
test eax, eax
je 0x417cd3
mov byte [esp + 0x23], 0
mov byte [esp + 0x22], 0
nop
lea esi, [esi]
movsx eax, byte [ebx]
test al, al
sete dl
or byte [esp + 0x22], dl
jne 0x417ba4
cmp al, 0x25
je 0x417be3
cmp al, 0x5c
jne 0x417bc0
movzx edx, byte [ebx + 1]
test dl, dl
je 0x417bc0
cmp dl, 0x72
je 0x417d35
cmp dl, 0x74
je 0x417d03
cmp dl, 0x6e
je 0x417d20
mov dword [esp + 4], ebp
mov dword [esp], 0x5c
call sub.cygwin1.dll_fputc
mov dword [esp + 4], ebp
movsx eax, byte [ebx + 1]
mov dword [esp], eax
call sub.cygwin1.dll_fputc
add ebx, 2
test ebx, ebx
jne 0x417b40
cmp byte [esp + 0x23], 0
jne 0x417cf0
add esp, 0x24c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ebp
mov dword [esp], eax
call sub.cygwin1.dll_fputc
add ebx, 1
test ebx, ebx
jne 0x417b40
cmp byte [esp + 0x23], 0
je 0x417baf
jmp 0x417cf0
movzx edx, byte [ebx + 1]
test dl, dl
je 0x417bc0
cmp dl, 0x25
je 0x417e51
cmp dl, 0x7b
je 0x417d50
lea eax, [ebx + 1]
mov esi, str.header
mov ecx, 7
mov edi, eax
repe cmpsb byte [esi], byte es:[edi]
seta dl
sbb dl, 0
test dl, dl
je 0x417e20
mov edi, eax
mov esi, str.output
mov ecx, 7
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
jne 0x417ea1
xor esi, esi
cmp byte [ebx + 8], 0x3e
lea edi, [ebx + 8]
je 0x417f24
mov dword [esp + 4], 0x7d
mov dword [esp], edi
call sub.cygwin1.dll_strchr
test eax, eax
mov ebx, eax
je 0x417f8a
mov edx, eax
sub edx, edi
cmp edx, 0x1ff
ja 0x417bcc
lea eax, [esp + 0x40]
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp + 0x24], edx
mov dword [esp], eax
call sub.cygwin1.dll_memcpy
mov edx, dword [esp + 0x24]
mov eax, esi
test al, al
mov eax, 0x4279f4
mov byte [esp + edx + 0x40], 0
mov edx, 0x4279f2
cmovne eax, edx
mov dword [esp + 4], eax
lea eax, [esp + 0x40]
mov dword [esp], eax
call sub.cygwin1.dll__fopen64
test eax, eax
mov esi, eax
je 0x417bcc
cmp byte [esp + 0x23], 0
jne 0x417fdc
mov ebp, eax
mov byte [esp + 0x23], 1
jmp 0x417bcc
mov eax, dword [esp + 0x38]
test eax, eax
je 0x417b31
mov edi, dword [esp + 0x264]
mov dword [edi + 0xc], eax
jmp 0x417b31
mov dword [esp], ebp
call sub.cygwin1.dll_fclose
add esp, 0x24c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ebp
mov dword [esp], 9
call sub.cygwin1.dll_fputc
jmp 0x417b9d
mov dword [esp + 4], ebp
mov dword [esp], 0xa
call sub.cygwin1.dll_fputc
jmp 0x417b9d
mov dword [esp + 4], ebp
mov dword [esp], 0xd
call sub.cygwin1.dll_fputc
jmp 0x417b9d
mov dword [esp], ebx
mov dword [esp + 4], 0x7d
add ebx, 2
call sub.cygwin1.dll_strchr
test eax, eax
mov dword [esp + 0x24], eax
je 0x417f65
mov ecx, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x28], ebp
mov eax, 5
mov ebp, edi
mov esi, str.certs
sub ecx, ebx
mov dword [esp + 0x2c], ecx
mov edi, ecx
jmp 0x417dae
add ebp, 1
mov eax, ebp
shl eax, 4
mov esi, dword [eax + 0x427d60]
test esi, esi
je 0x417e70
mov dword [esp], esi
call sub.cygwin1.dll_strlen
cmp edi, eax
jne 0x417d90
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.cygcurl_4.dll_curl_strnequal
test eax, eax
je 0x417d90
mov edi, ebp
mov ebp, dword [esp + 0x28]
mov eax, edi
shl eax, 4
mov eax, dword [eax + 0x427d64]
cmp eax, 0x2e
je 0x41800a
ja 0x417fb1
cmp eax, 0xd
je 0x418054
cmp eax, 0x27
jne 0x41801d
mov eax, dword [esp + 0x268]
mov dword [esp + 4], 0x427d60
mov dword [esp], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x264]
mov dword [esp + 8], eax
call fcn.004182f0
jmp 0x417e95
add ebx, 8
mov dword [esp + 4], 0x7d
mov dword [esp], ebx
call sub.cygwin1.dll_strchr
test eax, eax
mov esi, eax
je 0x417f40
mov edi, eax
sub edi, ebx
cmp edi, 0xff
jbe 0x417eb1
lea ebx, [esi + 1]
jmp 0x417bcf
mov dword [esp + 4], ebp
mov dword [esp], 0x25
add ebx, 2
call sub.cygwin1.dll_fputc
jmp 0x417bcf
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], str.curl:_unknown___write_out_variable:__.s_n
mov ebp, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [0x42e528]
mov dword [esp], eax
call sub.cygcurl_4.dll_curl_mfprintf
mov ebx, dword [esp + 0x24]
add ebx, 1
jmp 0x417bcf
mov dword [esp + 4], ebp
mov dword [esp], 0x25
jmp 0x417b88
lea eax, [esp + 0x40]
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.cygwin1.dll_memcpy
lea eax, [esp + 0x3c]
mov byte [esp + edi + 0x40], 0
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x264]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call sub.cygcurl_4.dll_curl_easy_header
test eax, eax
jne 0x417e49
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], ebp
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.cygwin1.dll_fputs
jmp 0x417e49
cmp byte [ebx + 9], 0x3e
movzx esi, byte [esp + 0x22]
jne 0x417c46
lea edi, [ebx + 0xa]
mov esi, 1
jmp 0x417c46
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 8
mov dword [esp + 4], 1
mov dword [esp], str._header
call sub.cygwin1.dll_fwrite
jmp 0x417b40
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4279f6
call sub.cygwin1.dll_fwrite
jmp 0x417bcf
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 8
mov ebx, edi
mov dword [esp + 4], 1
mov dword [esp], str._output
call sub.cygwin1.dll_fwrite
jmp 0x417b40
cmp eax, 0x3f
je 0x417feb
cmp eax, 0x40
jne 0x41801d
cmp byte [esp + 0x23], 0
je 0x417fca
mov dword [esp], ebp
call sub.cygwin1.dll_fclose
call sub.cygwin1.dll___getreent
mov byte [esp + 0x23], 0
mov ebp, dword [eax + 8]
jmp 0x417e95
mov dword [esp], ebp
mov ebp, esi
call sub.cygwin1.dll_fclose
jmp 0x417bcc
cmp byte [esp + 0x23], 0
je 0x417ffa
mov dword [esp], ebp
call sub.cygwin1.dll_fclose
mov ebp, dword [0x42e528]
mov byte [esp + 0x23], 0
jmp 0x417e95
mov eax, dword [esp + 0x268]
test eax, eax
sete byte [esp + 0x22]
jmp 0x417e95
mov eax, edi
mov edi, dword [esp + 0x268]
mov dword [esp + 0x10], 0
shl eax, 4
mov dword [esp], ebp
add eax, 0x427d60
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x264]
mov dword [esp + 4], eax
mov dword [esp + 8], edi
call dword [eax + 0xc]
jmp 0x417e95
mov eax, dword [esp + 0x264]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004183b0
jmp 0x417e95