Function at 0x4075b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ea28
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov eax, dword [eax + 0x10]
test eax, eax
jle 0x4075ec
mov dword [ebx + 0x25c], eax
cmp dword [ebx + 0x24c], edi
je 0x407604
cmp dword [ebx + 0x264], edi
je 0x407604
cmp dword [ebx + 0x250], edi
jne 0x40765c
mov esi, dword [ebx + 0x25c]
push esi
call fcn.0040b57a
add esp, 4
mov edi, eax
mov dword [ebx + 0x24c], edi
push 0x800
call fcn.0040b57a
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebx + 0x264], eax
push esi
call fcn.0040b57a
add esp, 4
mov dword [ebx + 0x250], eax
test edi, edi
je 0x407895
cmp dword [ebp - 0x18], 0
je 0x407895
test eax, eax
je 0x407895
xor edi, edi
push dword [ebx + 0x25c]
push 0
push dword [ebx + 0x24c]
call fcn.00411990
add esp, 0xc
mov ecx, ebx
push 0
push dword [ebx + 0x25c]
push dword [ebx + 0x24c]
call fcn.00407400
push dword [ebx + 0x24c]
push ebx
call fcn.00409880
mov esi, dword [ebp + 8]
inc esi
push 0x426580
push esi
call fcn.0040ce4d
add esp, 0x10
test eax, eax
jne 0x4076cf
cmp dword [ebx + 0x22c], 0x200
jne 0x4076cf
push str.Programming_UFS_device_using_SECTOR_SIZE4096_n
push ebx
call fcn.004098b0
add esp, 8
mov dword [ebx + 0x22c], 0x1000
jmp 0x4076e3
push dword [ebx + 0x22c]
push str.Programming_device_using_SECTOR_SIZE_i_n
push ebx
call fcn.004098b0
add esp, 0xc
push dword [ebx + 0x25c]
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + 9]
push eax
movzx eax, byte [ecx + 0xa]
push eax
movzx eax, byte [ecx + 0xb]
push eax
push esi
push str.__xml_version___1.0_____data__configure_MemoryName__s__ZLPAwareHost__i__SkipStorageInit__i__SkipWrite__i__MaxPayloadSizeToTargetInBytes__i_____data_
push 0x800
push dword [ebx + 0x264]
call fcn.0040ca05
push dword [ebx + 0x264]
push ebx
call fcn.00409880
mov eax, dword [ebx + 0x264]
add esp, 0x28
test eax, eax
je 0x407738
push 0x800
push eax
call fcn.0040d213
add esp, 8
mov ecx, dword [ebx + 0x238]
lea edx, [ebp - 0x18]
xor esi, esi
mov dword [ebp - 0x18], eax
push esi
push edx
push eax
push dword [ebx + 0x264]
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407763
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40785b
nop dword [eax + eax]
mov ecx, ebx
call fcn.00407950
mov esi, eax
test esi, esi
je 0x4077e1
cmp esi, 0xd
jne 0x4077db
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
push ecx
push dword [ebx + 0x24c]
lea ecx, [ebp - 0x2c]
movlpd qword [ebp - 0x1c], xmm0
call fcn.0040b3e0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
test ecx, ecx
jne 0x4077b8
test eax, eax
je 0x4077c4
test ecx, ecx
jb 0x40780b
ja 0x4077c4
cmp eax, dword [ebx + 0x25c]
jb 0x40780b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4077db
push eax
call fcn.0040b542
add esp, 4
inc edi
cmp edi, 0x32
jb 0x407770
cmp edi, 0x32
jne 0x40785b
push str.ERROR:_No_response_to_configure_packet_n
push ebx
call fcn.004098b0
add esp, 8
lea eax, [edi - 0x1d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + 8]
mov dword [ebx + 0x25c], eax
mov dword [esi + 0x10], eax
push dword [ebx + 0x25c]
push str.We_are_decreasing_our_max_packet_size__i_n
push ebx
call fcn.00409880
add esp, 0xc
mov ecx, ebx
push esi
call fcn.004075b0
mov ecx, dword [ebp - 0x2c]
mov esi, eax
test ecx, ecx
je 0x407845
push ecx
call fcn.0040b542
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push dword [ebx + 0x25c]
mov ecx, ebx
push dword [ebx + 0x24c]
call fcn.00407400
push dword [ebx + 0x24c]
push ebx
call fcn.00409880
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0xc035000b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4