Function at 0x421280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], 0
or ebx, 0xffffffff
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov esi, edx
test edi, edi
jne 0x4212c6
push 0x171
push str.D:_a_rufus_rufus_src_net.c
push str.url___NULL
call fcn.004dfbbc
add esp, 0xc
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4212d0
sub ecx, edx
lea eax, [ecx + 5]
push eax
call fcn.004d122c
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x421309
push str.Could_not_allocate_signature_URL
call fcn.0044b0b0
mov edi, dword [esp + 0x14]
add esp, 4
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4215f7
mov edx, eax
mov ecx, edi
sub edx, edi
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x421310
mov ecx, dword [esp + 0x10]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x421322
mov eax, dword [str..sig]
xor edx, edx
mov dword [ecx], eax
mov al, byte [0x5327a4]
push 0
push dword [ebp + 8]
mov byte [ecx + 4], al
lea eax, [esp + 0x20]
push eax
push 0
mov ecx, edi
call fcn.00420570
mov edi, dword [esp + 0x20]
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x4215ee
push 0
push 0
lea eax, [esp + 0x24]
xor edx, edx
push eax
push 0
mov ecx, edi
call fcn.00420570
add esp, 0x10
cmp eax, 0x100
jne 0x421591
mov ecx, dword [esp + 0x18]
mov edx, ebx
push eax
push dword [esp + 0x20]
call fcn.00428850
add esp, 8
test eax, eax
je 0x421591
push str.Download_signature_is_valid_
call fcn.0044b0b0
add esp, 4
mov dword [0x5a2aec], 0xce
test esi, esi
je 0x42141d
cmp byte [esi], 0
jne 0x4213d2
push 2
push 1
call fcn.004b6706
add esp, 8
mov edi, eax
jmp 0x42141f
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
cmp ebx, 1
jle 0x42141d
push 2
push ebx
call fcn.004b6706
mov edi, eax
add esp, 8
test edi, edi
je 0x42141d
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x42141f
push edi
call fcn.004d1211
add esp, 4
xor edi, edi
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
je 0x421451
push edi
call fcn.004d1211
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [esp + 0x20]
cmp ebx, 0xffffffff
jne 0x4214b8
test esi, esi
je 0x421495
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421470
sub ecx, edx
je 0x421493
nop dword [eax + eax]
mov al, byte [ecx + esi]
cmp al, 0x2f
je 0x421492
cmp al, 0x5c
je 0x421492
sub ecx, 1
jne 0x421480
jmp 0x421493
inc ecx
add esi, ecx
call fcn.0044b6b0
push eax
push esi
push str.Unable_to_create_file__s:__s
call fcn.0044b0b0
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4215f7
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x14]
push 0
push eax
push edi
push dword [esp + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x421530
test esi, esi
je 0x421505
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4214e0
sub ecx, edx
je 0x421503
nop dword [eax + eax]
mov al, byte [ecx + esi]
cmp al, 0x2f
je 0x421502
cmp al, 0x5c
je 0x421502
sub ecx, 1
jne 0x4214f0
jmp 0x421503
inc ecx
add esi, ecx
call fcn.0044b6b0
push eax
push esi
push str.Error_writing_file__s:__s
call fcn.0044b0b0
add esp, 0xc
mov edi, dword [esp + 0x10]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x14], 0
jmp 0x4215f7
cmp dword [esp + 0x14], edi
je 0x42157b
test esi, esi
jne 0x42153e
xor eax, eax
jmp 0x421566
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421543
sub ecx, edx
je 0x421563
nop
mov al, byte [ecx + esi]
cmp al, 0x2f
je 0x421562
cmp al, 0x5c
je 0x421562
sub ecx, 1
jne 0x421550
jmp 0x421563
inc ecx
lea eax, [ecx + esi]
push edi
push dword [esp + 0x18]
push eax
push str.Error_writing_file__s:_Only__d__d_bytes_written
call fcn.0044b0b0
add esp, 0x10
jmp 0x421519
mov edi, dword [esp + 0x10]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x5a2aec], 0xc8
jmp 0x4215f7
push str.FATAL:_Download_signature_is_invalid_
call fcn.0044b0b0
add esp, 4
mov dword [0x5a2aec], 0x193
mov dword [0x55a318], 0xe003120d
push 0
push 2
push 0x410
push 0x3f2
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call esi
mov ecx, dword [0x59ea10]
test ecx, ecx
je 0x4215f4
mov eax, dword [ecx]
push 4
push dword [0x5a2ae4]
mov eax, dword [eax + 0x28]
push ecx
call eax
jmp 0x4215f4
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
or ebx, 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x42160c
push 0
push dword [esp + 0x18]
push 0x8003
push eax
call esi
cmp dword [ebp + 0xc], 0
je 0x421683
cmp dword [0x5a2aec], 0xc8
je 0x421683
push 0xcaa
push 0
push 0
push 1
call fcn.0041ed70
add esp, 0x10
push dword [0x59bc14]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [0x55a318]
test ecx, ecx
jns 0x42164e
call fcn.0044bd50
jmp 0x421653
call fcn.0044b6b0
cmp dword [0x55a760], 0
mov esi, eax
push ecx
mov ecx, 0x180010
mov eax, 0x10
cmovne eax, ecx
push eax
push 0xbe4
call fcn.0041e970
add esp, 4
mov edx, esi
push eax
call fcn.0041f580
add esp, 0xc
cmp ebx, 0xffffffff
je 0x421693
test ebx, ebx
je 0x421693
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004d1211
add esp, 4
push dword [esp + 0x18]
call fcn.004d1211
add esp, 4
push dword [esp + 0x1c]
call fcn.004d1211
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret