Function at 0x409327
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov edx, ecx
push edi
mov dword [ebp - 0xc], edx
mov ecx, dword [esi + 0xc]
lea edi, [esi + 0x78]
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x409b45
test eax, eax
je 0x409b45
mov ebx, dword [ebp + 0xc]
mov byte [ebx], 0
mov ebx, dword [ebp + 0x10]
and dword [ebx], 0
cmp byte [esi + 0x30], 0
mov ebx, dword [ebp + 8]
je 0x409383
push dword [esi + 0x34]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop ecx
mov ecx, dword [ebp - 0x10]
cmp dword [eax + 0x2bc], 0
mov dword [ebp - 0x20], 0x17
jne 0x4093e1
test ebx, ebx
je 0x4093e1
cmp dword [edx], 0
je 0x4093e1
lea eax, [esi + 0xfd]
cmp byte [eax], 0
jne 0x4093ae
mov ecx, ebx
call fcn.004198fc
push eax
push ebx
push str.curl:___d___s_n
push dword [edx + 8]
call fcn.00412119
add esp, 0x10
cmp ebx, 0x3c
jne 0x409493
mov eax, dword [ebp - 0xc]
push dword [eax + 8]
push str.More_details_here:_https:__curl.se_docs_sslcerts.html_n_ncurl_failed_to_verify_the_legitimacy_of_the_server_and_therefore_could_not_nestablish_a_secure_connection_to_it._To_learn_more_about_this_situation_and_nhow_to_fix_it__please_visit_the_web_page_mentioned_above._n
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
pop ecx
pop ecx
jmp 0x409493
cmp byte [eax + 0x10a], 0
je 0x40942e
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0x200002
push ecx
call fcn.00412362
add esp, 0xc
cmp dword [ebp - 0x1c], 0x190
jl 0x40942b
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x409426
push dword [ebp - 0x1c]
push 0x16
push str.curl:___d__The_requested_URL_returned_error:__ld_n
push dword [eax + 8]
call fcn.00412119
add esp, 0x10
push 0x16
pop ebx
jmp 0x409493
mov eax, dword [ebp - 8]
mov ecx, ebx
test ecx, ecx
jne 0x409493
cmp byte [eax + 0x290], bl
je 0x409451
cmp byte [edi + 7], bl
je 0x409451
cmp dword [edi + 8], ebx
je 0x409451
push dword [edi + 8]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
pop ecx
mov ecx, ebx
cmp dword [edi + 8], 0
mov ebx, ecx
jne 0x409493
mov eax, dword [edi + 0x10]
or eax, dword [edi + 0x14]
jne 0x409493
and dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0x200023
push dword [ebp - 0x10]
call fcn.00412362
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [ebp - 0x1c], 0
mov ebx, eax
jne 0x409493
mov edx, dword [ebp - 8]
mov ecx, edi
call fcn.00401fdc
test al, al
cmove ebx, dword [ebp - 0x20]
cmp byte [edi + 6], 0
jne 0x4094cf
cmp dword [edi + 8], 0
je 0x4094cf
push dword [edi + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
test ebx, ebx
jne 0x4094cf
test eax, eax
je 0x4094cf
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov ebx, ecx
cmp dword [eax], 0
je 0x4094cf
push ecx
push str.curl:___d__Failed_writing_body_n
push dword [eax + 8]
call fcn.00412119
add esp, 0xc
cmp dword [esi + 0x10], 0
je 0x40975e
mov eax, dword [ebp - 8]
cmp dword [eax + 0x264], 0
je 0x409514
push dword [esi + 0x20]
push dword [esi + 0x1c]
call fcn.0041027a
push edx
push eax
call fcn.004102f7
mov ecx, eax
add esp, 0x10
mov eax, dword [ebp - 8]
imul eax, dword [eax + 0x264], 0x3e8
cmp ecx, eax
jge 0x40975e
mov eax, dword [ebp - 8]
and dword [ebp - 0x24], 0
and dword [ebp - 0x18], 0
cmp ebx, 0x1c
je 0x409648
cmp ebx, 6
je 0x409648
push 5
pop ecx
mov dword [ebp - 0x14], ecx
cmp ebx, ecx
je 0x409648
cmp ebx, 0xc
je 0x409648
cmp byte [eax + 0x25d], 0
je 0x409583
cmp ebx, 7
jne 0x409583
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0x200019
push dword [ebp - 0x10]
call fcn.00412362
add esp, 0xc
cmp dword [ebp - 0x1c], 0x274d
jne 0x40965c
push 3
pop edx
mov dword [ebp - 0x14], edx
jmp 0x40967c
test ebx, ebx
je 0x4095e7
cmp byte [eax + 0x109], 0
je 0x409595
cmp ebx, 0x16
je 0x4095e7
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x18]
push eax
push 0x200002
push dword [ebp - 0x10]
call fcn.00412362
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push 0x200030
push dword [ebp - 0x10]
call fcn.00412362
add esp, 0xc
cmp dword [ebp - 0x1c], 4
je 0x4095d1
cmp dword [ebp - 0x1c], 8
jne 0x40965c
mov eax, dword [ebp - 0x18]
push 0x64
cdq
pop ecx
idiv ecx
cmp eax, 4
jne 0x40965c
push 5
pop edx
jmp 0x40967c
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0x200030
push dword [ebp - 0x10]
call fcn.00412362
add esp, 0xc
cmp dword [ebp - 0x1c], 1
je 0x40960b
cmp dword [ebp - 0x1c], 2
jne 0x40964c
lea eax, [ebp - 0x18]
push eax
push 0x200002
push dword [ebp - 0x10]
call fcn.00412362
mov eax, dword [ebp - 0x18]
add esp, 0xc
sub eax, 0x198
je 0x409643
sub eax, 0x15
je 0x409643
sub eax, 0x47
je 0x409643
dec eax
sub eax, 1
je 0x409643
sub eax, 1
je 0x409643
sub eax, 1
jne 0x40964c
push 4
pop eax
jmp 0x40964f
push 2
jmp 0x409645
mov eax, dword [ebp - 0x24]
mov edx, eax
mov dword [ebp - 0x14], edx
test ebx, ebx
je 0x409674
test eax, eax
jne 0x40967c
mov eax, dword [ebp - 8]
cmp byte [eax + 0x25c], 0
je 0x40975e
xor edx, edx
inc edx
jmp 0x40957b
test eax, eax
je 0x40975e
mov eax, dword [esi + 0x18]
xorps xmm0, xmm0
movlpd qword [ebp - 0x34], xmm0
mov dword [ebp - 0x1c], eax
cmp edx, 4
jne 0x409897
lea eax, [ebp - 0x34]
push eax
push 0x600039
push dword [ebp - 0x10]
call fcn.00412362
mov ecx, dword [ebp - 0x34]
add esp, 0xc
mov eax, ecx
or eax, dword [ebp - 0x30]
je 0x409897
cmp dword [ebp - 0x30], 0
jl 0x4096ce
jg 0x4096c5
cmp ecx, 0x20c49b
jbe 0x4096ce
mov dword [ebp - 0x1c], connect
jmp 0x4096d7
imul eax, ecx, 0x3e8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x264], 0
je 0x409897
push dword [esi + 0x20]
push dword [esi + 0x1c]
call fcn.0041027a
push edx
push eax
call fcn.004102f7
cdq
mov ecx, 0x3e8
idiv ecx
add esp, 0x10
cdq
mov ecx, eax
or eax, 0xffffffff
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov eax, accept
sbb eax, dword [ebp - 0x30]
cmp eax, edx
jl 0x409749
jg 0x409723
cmp dword [ebp - 0x24], ecx
jb 0x409749
add ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
adc edx, dword [ebp - 0x30]
mov dword [ebp - 0x24], edx
mov eax, dword [eax + 0x264]
cdq
cmp dword [ebp - 0x24], edx
jl 0x409897
jg 0x409749
cmp ecx, eax
jbe 0x409897
mov eax, dword [ebp - 8]
push str.The_Retry_After:_time_would_make_this_command_line_exceed_the_maximum_allowed_time_for_retries.
push dword [eax + 0x2d4]
call fcn.0040913e
pop ecx
pop ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x24], 1
jne 0x40977d
cmp dword [esi + 0x40], 0
je 0x40977d
push dword [esi + 0x5c]
push 0x457668
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
pop ecx
pop ecx
cmp byte [edi + 7], 0
je 0x4097e0
cmp dword [edi + 8], 0
je 0x4097e0
push dword [edi + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
test ebx, ebx
jne 0x4097b9
test eax, eax
je 0x4097e8
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov ebx, ecx
cmp dword [eax], 0
je 0x4097bc
push ecx
push str.curl:___d__Failed_writing_body_n
push dword [eax + 8]
call fcn.00412119
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
cmp byte [ecx + 0x308], 0
je 0x4097e0
push dword [edi]
push str.Removing_output_file:__s_n
push eax
call fcn.0040911d
add esp, 0xc
push dword [edi]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__unlink
pop ecx
test ebx, ebx
jne 0x409a7d
mov eax, dword [ebp - 8]
cmp byte [eax], 0
je 0x409a80
cmp byte [edi + 6], 0
je 0x409a80
cmp dword [edi], 0
je 0x409a80
or dword [ebp - 0x34], 0xffffffff
lea eax, [ebp - 0x34]
or dword [ebp - 0x30], 0xffffffff
push eax
push 0x60000e
push dword [ebp - 0x10]
call fcn.00412362
mov ecx, dword [ebp - 0x30]
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
jl 0x409a7d
jg 0x409841
test eax, eax
jb 0x409a7d
push dword [edi]
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
pop ecx
mov ecx, dword [ebp - 0x20]
mov edx, eax
mov dword [ebp - 0x24], edx
cmp ecx, 0xd4
jl 0x4099d4
mov eax, dword [ebp - 0x14]
jg 0x40986d
cmp eax, 0x8314bff
jbe 0x4099d4
push ecx
push eax
push str.Failed_to_set_filetime__I64d_on_outfile:_overflow_n
push dword [ebp - 0xc]
call fcn.0040913e
mov eax, dword [ebp - 0x24]
add esp, 0x10
test eax, eax
je 0x409a7d
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x409a7d
mov eax, dword [ebp - 0x1c]
mov ecx, 0x3e8
cdq
idiv ecx
push dword [esi + 0x10]
mov ebx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
push dword [eax*4 + 0x460790]
push str.Problem__s._Will_retry_in__ld_seconds.__ld_retries_left._n
push dword [ebx + 0x2d4]
call fcn.0040913e
add esp, 0x14
dec dword [esi + 0x10]
cmp dword [ebx + 0x260], 0
jne 0x4098e4
mov eax, dword [esi + 0x18]
mov ecx, 0x927c0
add eax, eax
cmp eax, ecx
cmovg eax, ecx
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x10]
or eax, dword [edi + 0x14]
je 0x4099a0
cmp dword [edi], 0
je 0x4099a0
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4099a0
mov eax, dword [ebp - 0xc]
cmp byte [eax + 4], 0
jne 0x409926
push dword [edi + 0x14]
push dword [edi + 0x10]
push str.Throwing_away__I64d_bytes_n
push dword [eax + 8]
call fcn.00412119
mov ecx, dword [edi + 8]
add esp, 0x10
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ebx, dword [edi + 0x18]
mov edi, dword [edi + 0x1c]
pop ecx
push dword [esi + 0x80]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
pop ecx
mov esi, eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
pop ecx
push 0
push edi
push ebx
push esi
mov dword [ebp - 0x24], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseeki64]
add esp, 0x10
test edx, edx
jl 0x4099b5
jg 0x409965
test eax, eax
jb 0x4099b5
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetEndOfFile]
test eax, eax
je 0x4099b5
mov ebx, dword [ebp - 0x28]
push 2
push 0
push dword [ebx + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
je 0x409998
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x4099cc
push str.curl:__23__Failed_seeking_to_end_of_file_n
jmp 0x4099c2
and dword [ebx + 0x10], 0
and dword [ebx + 0x14], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov byte [eax], 1
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
xor eax, eax
jmp 0x409b47
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x4099cc
push str.curl:__23__Failed_to_truncate_file_n
push dword [eax + 8]
call fcn.00412119
pop ecx
pop ecx
mov eax, dword [ebp - 0x20]
jmp 0x409b47
xor eax, eax
push eax
push eax
push 3
push eax
push 7
push pe_nt_image_headers32
push edx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4099fb
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
cmp dword [ebp - 0x1c], 0xffffffff
je 0x409a60
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
add ecx, 0xb6109100
push 0
push 0x989680
adc eax, 2
push eax
push ecx
call fcn.004531d0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push eax
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileTime]
test eax, eax
jne 0x409a55
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push str.Failed_to_set_filetime__I64d_on_outfile:_SetFileTime_failed:_GetLastError__u_n
push dword [ebp - 0xc]
call fcn.0040913e
add esp, 0x14
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x409a7d
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push str.Failed_to_set_filetime__I64d_on_outfile:_CreateFile_failed:_GetLastError__u_n
push dword [ebp - 0xc]
call fcn.0040913e
add esp, 0x14
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1cc]
test ecx, ecx
je 0x409a93
push ebx
mov edx, esi
call fcn.00410637
pop ecx
cmp byte [esi + 0x9f], 0
je 0x409aae
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x409aae
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
cmp byte [esi + 0x9c], 0
je 0x409acb
push dword [esi + 0x98]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
and dword [esi + 0x98], 0
pop ecx
cmp byte [esi + 0xbf], 0
je 0x409ae6
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x409ae6
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
cmp byte [esi + 0xbc], 0
je 0x409b03
push dword [esi + 0xb8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
and dword [esi + 0xb8], 0
pop ecx
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x409b15
lea ecx, [ebp - 0x28]
call fcn.004216ca
cmp byte [edi + 4], 0
je 0x409b24
push dword [edi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push dword [esi + 0x24]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push dword [esi + 0x2c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push dword [esi + 0x234]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret