Function at 0x403ad0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor ebx, ebx
push edi
push ebx
push ebx
or edi, 0xffffffff
push 1
push ebx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
call esi
push ebx
push ebx
push 1
push ebx
mov dword [esp + 0x94], eax
call esi
push ebx
push ebx
push 1
push ebx
mov dword [esp + 0x98], eax
call esi
push 0xb501
push 0x416
lea ecx, [esp + 0x80]
mov dword [esp + 0x94], eax
mov dword [esp + 0x80], 0x429954
mov dword [esp + 0x38], 0x429950
call fcn.004029d0
test eax, eax
jne 0x403b76
push str.Cant_Open_HID_Device_n
call fcn.0040d8d6
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov ebp, dword [sym.imp.KERNEL32.dll_CancelIo]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
jmp 0x403d4f
push 0xb501
push 0x416
push str.USB_HID_Device_VID__04x__PID__04x__Open_Success._n
call fcn.0040d8d6
mov esi, dword [esp + 0xb4]
mov ebp, dword [esp + 0xb8]
lea eax, [esi + ebp - 1]
push eax
push esi
push str.____Erase_sectors:__d____d_n
call fcn.0040d8d6
lea ecx, [esp + 0x28]
push 0xe
push ecx
mov byte [esp + 0x30], 0x71
mov byte [esp + 0x31], 0xe
mov dword [esp + 0x32], esi
mov dword [esp + 0x36], ebp
mov dword [esp + 0x3a], 0x43444948
call fcn.00403560
mov dword [esp + 0x3e], eax
mov ecx, 0x10
mov eax, 0xcccccccc
lea edi, [esp + 0x54]
mov edx, dword [esp + 0x30]
add esp, 0x20
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
mov dword [esp + 0x35], edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x41], edx
xor edx, edx
mov dword [esp + 0x90], edx
mov dword [esp + 0x39], eax
mov ax, word [esp + 0x20]
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], edx
mov dword [esp + 0x3d], ecx
mov ecx, dword [esp + 0x8c]
mov word [esp + 0x45], ax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], edx
mov byte [esp + 0x34], bl
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0xa0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x90]
push eax
push ebx
lea ecx, [esp + 0x3c]
push 0x41
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403ce3
push 0x64
lea eax, [esp + 0x2c]
push ebx
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, eax
cmp esi, ebx
je 0x403c99
cmp esi, 1
jne 0x403ce3
mov ecx, dword [esp + esi*4 + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp esi, ebx
je 0x403ce3
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x24]
push 1
lea eax, [esp + 0x94]
push edx
push eax
push ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ebx, ebp
mov eax, dword [esp + 0x7c]
cmp eax, 0xffffffff
je 0x403cf2
mov ebp, dword [sym.imp.KERNEL32.dll_CancelIo]
push eax
call ebp
mov eax, dword [esp + 0x7c]
jmp 0x403cf8
push str.ERROR:_Send_erase_command_error__n
call fcn.0040d8d6
add esp, 4
jmp 0x403ccb
mov ebp, dword [sym.imp.KERNEL32.dll_CancelIo]
mov ecx, dword [esp + 0x80]
cmp ecx, 0xffffffff
je 0x403d12
push ecx
call ebp
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
cmp eax, 0xffffffff
je 0x403d30
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x80]
or eax, 0xffffffff
mov dword [esp + 0x7c], eax
jmp 0x403d36
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ecx, 0xffffffff
je 0x403d4c
push ecx
call esi
mov eax, dword [esp + 0x7c]
or ecx, 0xffffffff
mov dword [esp + 0x80], ecx
or edi, 0xffffffff
cmp eax, edi
mov dword [esp + 0x30], 0x429950
mov dword [esp + 0x78], 0x429954
je 0x403d71
push eax
call ebp
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
cmp ecx, edi
je 0x403d83
push ecx
call ebp
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
cmp eax, edi
je 0x403d95
push eax
call esi
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x7c], edi
cmp ecx, edi
je 0x403da3
push ecx
call esi
mov dword [esp + 0x80], edi
mov edx, dword [esp + 0x88]
push edx
call esi
mov eax, dword [esp + 0x84]
push eax
call esi
mov ecx, dword [esp + 0x8c]
push ecx
call esi
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x94
ret