Function at 0x10007530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005792e
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100703c4]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
push ebp
lea ecx, [esp + 0x20]
call fcn.10004f40
xor eax, eax
push ebp
mov dword [esp + 0x38], eax
lea ecx, [esi + 0xd0]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x90]
push 2
lea edx, [esp + 0x40]
mov dword [esp + 0x44], ecx
lea edi, [esi + 0x94]
push edx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x104], ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edi
call fcn.1000de56
push ebp
push 2
lea ecx, [esp + 0x48]
lea eax, [esi + 0x8c]
push ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x104], 1
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], eax
call fcn.1000de56
mov ebx, dword [sym.imp.KERNEL32.dll_CancelIo]
mov byte [esp + 0xf8], 2
mov byte [esp + 0x17], 0
lea ebx, [ebx]
push ebp
push ebp
push 0xffffffffffffffff
lea ecx, [esp + 0xa8]
call fcn.1000dc28
sub eax, ebp
je 0x1000776e
sub eax, 1
jne 0x10007773
lea edx, [esp + 0x1c]
push edx
lea ecx, [esi + 0x9c]
call fcn.10006320
test al, al
je 0x10007773
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x18], ebp
mov eax, dword [edi + 8]
cmp eax, ebp
je 0x1000764d
mov ebp, dword [edi + 0xc]
sub ebp, eax
test eax, eax
je 0x10007658
mov ecx, dword [edi + 0xc]
sub ecx, eax
jne 0x1000765d
call fcn.1002ba4f
mov eax, dword [edi + 8]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esi + 0x24]
lea ecx, [esp + 0x1c]
push ecx
push ebp
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100076a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x100076a9
push eax
push str.ImdAdapterLink_Packet_Write_failed__error:__i_n
push 2
push esi
call fcn.10006060
mov eax, dword [edi]
add esp, 0x10
push 1
push eax
mov ecx, esi
call fcn.100070d0
jmp 0x10007773
mov ecx, dword [esi + 0x68]
push 0
push 0
push ecx
lea ecx, [esp + 0x58]
call fcn.1000dc28
sub eax, 0
je 0x1000775c
sub eax, 1
je 0x100076fa
sub eax, 0x101
jne 0x10007773
mov edx, dword [esi + 0x24]
push edx
call ebx
mov eax, dword [edi]
push eax
push str.SendPacket_TimeOut__PacketID:__i_n
push 2
push esi
call fcn.10006060
mov ecx, dword [edi]
add esp, 0x10
push 4
push ecx
mov ecx, esi
call fcn.100070d0
jmp 0x10007773
mov ecx, dword [esi + 0x24]
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x10007739
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ImdAdptLink_sendpacket_error_retrieving_Overlapped_result__i_n
push 2
push esi
call fcn.10006060
mov edx, dword [edi]
add esp, 0x10
push 1
push edx
mov ecx, esi
call fcn.100070d0
jmp 0x10007773
mov eax, dword [esp + 0x18]
push eax
push str.SendPacket_Completed__written:__i_n
push 3
push esi
call fcn.10006060
mov ecx, dword [edi]
add esp, 0x10
push 0
push ecx
mov ecx, esi
call fcn.100070d0
jmp 0x10007773
mov edx, dword [esi + 0x24]
push edx
call ebx
mov eax, dword [edi]
push 1
push eax
mov ecx, esi
call fcn.100070d0
mov byte [esp + 0x17], 1
xor ebp, ebp
push ebp
lea ecx, [esp + 0x20]
call fcn.10004fd0
cmp byte [esp + 0x17], 0
je 0x10007600
lea ecx, [esp + 0x4c]
mov byte [esp + 0xf8], 1
call fcn.1000de15
lea ecx, [esp + 0x9c]
mov byte [esp + 0xf8], 0
call fcn.1000de15
lea ecx, [esp + 0x1c]
call fcn.10004e00
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret