Function at 0x4063f0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x5c
mov edi, dword [esp + 0x74]
mov dword [esp], 0
test edi, edi
je 0x406558
mov edx, dword [esp + 0x78]
test edx, edx
jne 0x406415
mov edx, dword [edi + 0x10]
mov ebx, dword [esp + 0x70]
xor eax, eax
test edx, edx
je 0x4065e7
mov ecx, dword [edi + 0x14]
and ecx, 2
jne 0x4065e7
cmp byte [edx], 0
je 0x4065e7
mov eax, esp
lea ecx, [esp + 4]
push eax
push ecx
push edx
push ebx
mov ebp, edx
call fcn.00449500
add esp, 0x10
mov esi, eax
test eax, eax
jne 0x4065cf
mov dword [esp + 0xc], ebp
push dword [esp + 4]
push 1
push 0x6f
push str._Your_HSTS_cache._https:__curl.se_docs_hsts.html_n_This_file_was_generated_by_libcurl__Edit_at_your_own_risk._n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
push edi
call fcn.004070b0
add esp, 4
mov dword [esp + 8], 0
test eax, eax
je 0x40656b
mov esi, eax
jmp 0x4064c0
cmp byte [edi + 0x14], 0
mov eax, 0x99113e
mov ecx, 0x99113c
cmovne eax, ecx
push str.unlimited
push dword [edi + 0x10]
push eax
push str._s_s___s__n
push ebx
call fcn.0040cb20
add esp, 0x14
test esi, esi
je 0x406563
push esi
call fcn.004070d0
add esp, 4
mov edi, eax
push esi
call fcn.004070e0
add esp, 4
mov esi, eax
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
mov edx, ecx
mov ebx, 0x7fffffff
xor edx, ebx
mov ebx, eax
mov ebp, 0xffffffff
xor ebx, ebp
or ebx, edx
mov ebx, dword [esp + 4]
je 0x406490
lea edx, [esp + 0x18]
push edx
push ecx
push eax
call fcn.00414890
add esp, 0xc
test eax, eax
jne 0x40655f
cmp byte [edi + 0x14], 0
mov eax, 0x99113e
mov ecx, 0x99113c
cmovne eax, ecx
mov ecx, dword [esp + 0x2c]
mov edx, 0x76c
add ecx, edx
mov edx, dword [esp + 0x28]
inc edx
push dword [esp + 0x18]
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0x30]
push edx
push ecx
push dword [edi + 0x10]
push eax
push str._s_s___d_02d_02d__02d:_02d:_02d__n
push ebx
call fcn.0040cb20
add esp, 0x28
test esi, esi
jne 0x4064c0
jmp 0x406563
xor eax, eax
jmp 0x406723
mov dword [esp + 8], eax
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
push str.hsts.c
push 0x182
push dword [esp + 0xc]
call fcn.00407960
add esp, 0xc
mov ecx, dword [esp + 8]
test ecx, ecx
sete dl
mov eax, dword [esp]
test eax, eax
setne dh
and dh, dl
cmp dh, 1
jne 0x4065b3
push dword [esp + 0xc]
push eax
call fcn.00416330
add esp, 8
test eax, eax
mov ecx, 0x17
cmove ecx, eax
mov eax, dword [esp]
test ecx, ecx
setne dl
test eax, eax
setne dh
and dh, dl
mov esi, ecx
cmp dh, 1
jne 0x4065cf
push eax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__unlink
add esp, 4
push str.hsts.c
push 0x189
push dword [esp + 8]
call fcn.004075a0
add esp, 0xc
mov eax, esi
cmp dword [ebx + 0x1c8], 0
je 0x406723
push edi
mov esi, edi
mov edi, eax
call fcn.004070c0
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
push esi
call fcn.004070b0
add esp, 4
mov esi, eax
mov eax, edi
test esi, esi
je 0x406723
nop word cs:[eax + eax]
push esi
call fcn.004070d0
add esp, 4
mov edi, eax
push esi
call fcn.004070e0
add esp, 4
mov esi, eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x3c], eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 0x40], eax
movzx eax, byte [edi + 0x14]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
mov edx, ecx
mov edi, 0x7fffffff
xor edx, edi
mov edi, eax
mov ebp, 0xffffffff
xor edi, ebp
or edi, edx
jne 0x4066a0
lea eax, [esp + 0x48]
mov word [eax + 8], 0x64
mov dword [eax + 4], 0x6574696d
mov dword [eax], 0x696c6e75
jmp 0x4066e9
lea edx, [esp + 0x18]
push edx
push ecx
push eax
call fcn.00414890
add esp, 0xc
test eax, eax
jne 0x406723
mov eax, dword [esp + 0x2c]
mov ecx, 0x76c
add eax, ecx
mov ecx, dword [esp + 0x28]
inc ecx
push dword [esp + 0x18]
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0x30]
push ecx
push eax
push str._d_02d_02d__02d:_02d:_02d
push 0x12
lea eax, [esp + 0x68]
push eax
call fcn.0040c960
add esp, 0x24
push dword [ebx + 0x1cc]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
push ebx
call dword [ebx + 0x1c8]
add esp, 0x10
cmp eax, 2
je 0x40671e
mov ecx, eax
xor eax, eax
test ecx, ecx
jne 0x406723
inc dword [esp + 0x10]
test esi, esi
jne 0x406630
jmp 0x406723
mov eax, 0x2b
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret