Function at 0x479f3e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x9c
lea ebx, [ebp - 0xa0]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edi, edx
mov dword [ebp - 0x10], ecx
and dword [ebx], 0
push dword [edx + 0x10]
push ebx
push esi
push eax
push dword [edx + 0x18]
call sub.KERNEL32.DLL_WriteFile
mov edx, esi
test eax, eax
mov esi, eax
setne al
cmp dword [ebx], edx
sete bl
and bl, al
cmp bl, 1
jne 0x479fff
xor eax, eax
mov ecx, edx
test bl, bl
mov dword [ebp - 0x6c], 2
mov dword [ebp - 0x50], 0x80000000
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0x642460
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
mov byte [ebp - 0x34], al
jne 0x47a0b4
lea esi, [ebp - 0x6c]
mov ecx, esi
call 0x47a296
xor edi, edi
cmp eax, 1
mov ecx, esi
sbb edi, edi
or edi, edx
call 0x47a2cb
push edi
push dword [eax + 4]
call sub.KERNEL32.DLL_WaitForSingleObject
cmp eax, 0xffffffff
je 0x47a089
test eax, eax
je 0x47a052
cmp eax, 0x102
jne 0x47a24f
lea esi, [ebp - 0x2c]
mov edx, str.timed_out_while_writing_into_pipe
mov ecx, esi
call fcn.00479d16
mov al, byte [esi]
jmp 0x47a0a5
call sub.KERNEL32.DLL_GetLastError
test esi, esi
mov byte [ebp - 0x6c], 0
mov dword [ebp - 0x68], eax
jne 0x47a047
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x30], eax
call fcn.00479dd3
mov esi, edx
mov ecx, eax
mov edx, 0x64247c
call fcn.0048e5e9
mov edx, dword [ebp - 0x30]
cmp esi, 0x3e5
jne 0x47a047
mov ecx, dword [ebp - 0x6c]
call fcn.00479e08
mov edx, dword [ebp + 0xc]
mov al, 1
xor ecx, ecx
jmp 0x479f85
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x68]
jmp 0x47a214
lea esi, [ebp - 0x74]
lea ecx, [ebp - 0x6c]
and dword [esi], 0
mov byte [ecx + 0x38], 0
call 0x47a2cb
push 1
push esi
push dword [eax]
push edx
call sub.KERNEL32.DLL_GetOverlappedResult
test eax, eax
je 0x47a089
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x38]
jne 0x47a097
mov eax, dword [ebp - 0x74]
mov byte [ebp - 0x2c], 4
mov dword [ebp - 0x3c], eax
mov al, 4
jmp 0x47a0a5
call sub.KERNEL32.DLL_GetLastError
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], eax
jmp 0x47a0a9
call sub.KERNEL32.DLL_GetLastError
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], eax
xor eax, eax
cmp al, 4
je 0x47a0b4
mov eax, dword [ebp - 0x2c]
cmp al, 4
jne 0x47a164
mov eax, dword [ebp - 0x54]
movsd xmm2, qword [ebp - 0x6c]
mov dword [ebp - 0x6c], 2
movsd xmm0, qword [ebp - 0x5c]
movsd xmm1, qword [ebp - 0x64]
mov esi, 0x80000000
mov ecx, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x48]
movsd qword [ebp - 0x1c], xmm0
movsd qword [ebp - 0x24], xmm1
movsd qword [ebp - 0x2c], xmm2
mov dword [ebp - 0x50], esi
cmp ecx, esi
jne 0x47a119
cmp dword [ebp - 0x2c], 2
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], 2
je 0x47a17d
lea eax, [ebp - 0x2c]
push eax
call fcn.00479e3f
pop eax
jmp 0x47a17d
cmp dword [ebp - 0x2c], 2
je 0x47a23d
mov esi, dword [ebp - 0x14]
movsd xmm0, qword [ebp - 0x1c]
movsd xmm2, qword [ebp - 0x2c]
movsd xmm1, qword [ebp - 0x24]
mov dword [ebp - 0x84], esi
movsd qword [ebp - 0x8c], xmm0
movsd qword [ebp - 0x94], xmm1
movsd qword [ebp - 0x9c], xmm2
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], eax
jmp 0x47a17d
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x9c], 3
lea esi, [ebp - 0x6c]
mov ecx, esi
call 0x47a296
test eax, eax
sete al
test edx, edx
setne cl
cmp byte [esi + 0x38], 0
je 0x47a1ea
or al, cl
je 0x47a1ea
lea ecx, [ebp - 0x6c]
call 0x47a2cb
push dword [eax]
push edx
call sub.KERNEL32.DLL_CancelIoEx
test eax, eax
jne 0x47a1ea
call sub.KERNEL32.DLL_GetLastError
lea ecx, [ebp - 0xa8]
mov edi, eax
mov byte [ecx], 0
mov dword [ecx + 4], eax
call fcn.00479dd3
mov esi, edx
mov ecx, eax
mov edx, 0x6423fc
call fcn.0048e5e9
cmp esi, 0x3e5
jne 0x47a261
xor ecx, ecx
mov edx, edi
call fcn.00479e08
lea esi, [ebp - 0x6c]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
call fcn.0055d2a5
mov ecx, esi
call fcn.00479e87
cmp dword [ebp - 0x9c], 3
jne 0x47a21e
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov dword [edx + 4], ecx
jmp 0x47a232
lea ecx, [ebp - 0xa0]
call fcn.00479e63
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], ebx
mov byte [eax], 4
add esp, 0x9c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x28
pop edx
mov ecx, str.internal_error:_entered_unreachable_codeC:Users_admin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rustls_webpki_0.101.7_srccalendar.rs
push 0x642440
call fcn.0043a9e0
push 0x28
pop edx
mov ecx, str.internal_error:_entered_unreachable_codeC:Users_admin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rustls_webpki_0.101.7_srccalendar.rs
push 0x64248c
call fcn.0043a9e0
xor edx, edx
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0xa8]
mov dword [eax], ecx
lea ecx, [ebp - 0x2c]
inc edx
mov dword [eax + 4], fcn.00521870
mov dword [ecx], str.CANCEL_ERROR
mov dword [ecx + 4], edx
and dword [ecx + 0x10], 0
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov edx, 0x64240c
call fcn.00439fc0
push ebp
mov ebp, esp
cmp dword [ecx], 2
jne 0x47a2b1
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x47a2b9
mov ecx, dword [ecx + 0x2c]
push eax
call dword [ecx + 0x18]
add esp, 4
jmp 0x47a2b7
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
pop ebp
ret
push 0x28
pop edx
mov ecx, str.internal_error:_entered_unreachable_codeC:Users_admin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rustls_webpki_0.101.7_srccalendar.rs
push 0x642380
call fcn.0043a9e0
push ebp
mov ebp, esp
cmp dword [ecx], 2
jne 0x47a2e6
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x47a2f0
mov ecx, dword [ecx + 0x2c]
push eax
call dword [ecx + 0xc]
add esp, 4
jmp 0x47a2ee
mov edx, dword [ecx + 0x18]
add ecx, 0x10
mov eax, ecx
pop ebp
ret
push 0x28
pop edx
mov ecx, str.internal_error:_entered_unreachable_codeC:Users_admin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rustls_webpki_0.101.7_srccalendar.rs
push 0x642370
call fcn.0043a9e0