Function at 0x4133b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 4], eax
movsx eax, byte [0x4c5664]
cmp eax, 0x30
jne 0x4133f5
mov byte [ebp - 8], 0
push 0
push 0x4dec34
push 1
lea edx, [ebp - 7]
push edx
push dword [0x4dea64]
call sub.RT_USB.DLL_FT_W32_ReadFile_1
cmp dword [0x4dec34], 0
jne 0x413423
inc byte [ebp - 8]
cmp byte [ebp - 8], 3
jb 0x4133c9
jmp 0x413423
mov byte [ebp - 9], 0
push 0
push 0x4dec34
push 1
lea ecx, [ebp - 7]
push ecx
push dword [0x4dea64]
call sub.kernel32.dll_ReadFile_1
cmp dword [0x4dec34], 0
jne 0x413423
inc byte [ebp - 9]
cmp byte [ebp - 9], 3
jb 0x4133f9
cmp dword [0x4dec34], 0
jne 0x413436
mov eax, 1
jmp 0x413896
mov dl, 0xff
sub dl, byte [ebp - 7]
mov byte [ebp - 5], dl
movsx ecx, byte [0x4c5664]
cmp ecx, 0x30
jne 0x41349a
push 0
push 0x4dec34
push 1
lea eax, [ebp - 5]
push eax
push dword [0x4dea64]
call sub.RT_USB.DLL_FT_W32_WriteFile_1
mov byte [ebp - 0xa], 0
push 0
push 0x4dec34
push 1
lea edx, [ebp - 6]
push edx
push dword [0x4dea64]
call sub.RT_USB.DLL_FT_W32_ReadFile_1
cmp dword [0x4dec34], 0
je 0x41348f
mov cl, byte [ebp - 5]
cmp cl, byte [ebp - 6]
je 0x4134e8
inc byte [ebp - 0xa]
cmp byte [ebp - 0xa], 3
jb 0x413466
jmp 0x4134e8
push 0
push 0x4dec34
push 1
lea eax, [ebp - 5]
push eax
push dword [0x4dea64]
call sub.kernel32.dll_WriteFile_1
mov byte [ebp - 0xb], 0
push 0
push 0x4dec34
push 1
lea edx, [ebp - 6]
push edx
push dword [0x4dea64]
call sub.kernel32.dll_ReadFile_1
cmp dword [0x4dec34], 0
je 0x4134df
mov cl, byte [ebp - 5]
cmp cl, byte [ebp - 6]
je 0x4134e8
inc byte [ebp - 0xb]
cmp byte [ebp - 0xb], 3
jb 0x4134b6
mov al, byte [ebp - 7]
add al, 0xfd
mov byte [0x4dead6], al
movsx edx, byte [0x4c5664]
cmp edx, 0x30
jne 0x413519
push 0
push 0x4dec34
push 1
push 0x4dea68
push dword [0x4dea64]
call sub.RT_USB.DLL_FT_W32_ReadFile_1
jmp 0x413532
push 0
push 0x4dec34
push 1
push 0x4dea68
push dword [0x4dea64]
call sub.kernel32.dll_ReadFile_1
cmp dword [0x4dec34], 0
jne 0x413545
mov eax, 1
jmp 0x413896
mov dl, 0xff
sub dl, byte [0x4dea68]
mov byte [ebp - 5], dl
movsx ecx, byte [0x4c5664]
cmp ecx, 0x30
jne 0x4135ac
push 0
push 0x4dec34
push 1
lea eax, [ebp - 5]
push eax
push dword [0x4dea64]
call sub.RT_USB.DLL_FT_W32_WriteFile_1
mov byte [ebp - 0xc], 0
push 0
push 0x4dec34
push 1
lea edx, [ebp - 6]
push edx
push dword [0x4dea64]
call sub.RT_USB.DLL_FT_W32_ReadFile_1
cmp dword [0x4dec34], 0
je 0x4135a1
mov cl, byte [ebp - 5]
cmp cl, byte [ebp - 6]
je 0x4135fa
inc byte [ebp - 0xc]
cmp byte [ebp - 0xc], 3
jb 0x413578
jmp 0x4135fa
push 0
push 0x4dec34
push 1
lea eax, [ebp - 5]
push eax
push dword [0x4dea64]
call sub.kernel32.dll_WriteFile_1
mov byte [ebp - 0xd], 0
push 0
push 0x4dec34
push 1
lea edx, [ebp - 6]
push edx
push dword [0x4dea64]
call sub.kernel32.dll_ReadFile_1
cmp dword [0x4dec34], 0
je 0x4135f1
mov cl, byte [ebp - 5]
cmp cl, byte [ebp - 6]
je 0x4135fa
inc byte [ebp - 0xd]
cmp byte [ebp - 0xd], 3
jb 0x4135c8
movsx eax, byte [0x4c5664]
cmp eax, 0x30
jne 0x413621
push 0
push 0x4dec34
push 1
push 0x4dead5
push dword [0x4dea64]
call sub.RT_USB.DLL_FT_W32_ReadFile_1
jmp 0x41363a
push 0
push 0x4dec34
push 1
push 0x4dead5
push dword [0x4dea64]
call sub.kernel32.dll_ReadFile_1
cmp dword [0x4dec34], 0
jne 0x41364d
mov eax, 1
jmp 0x413896
mov dl, 0xff
sub dl, byte [0x4dead5]
mov byte [ebp - 5], dl
movsx ecx, byte [0x4c5664]
cmp ecx, 0x30
jne 0x4136b4
push 0
push 0x4dec34
push 1
lea eax, [ebp - 5]
push eax
push dword [0x4dea64]
call sub.RT_USB.DLL_FT_W32_WriteFile_1
mov byte [ebp - 0xe], 0
push 0
push 0x4dec34
push 1
lea edx, [ebp - 6]
push edx
push dword [0x4dea64]
call sub.RT_USB.DLL_FT_W32_ReadFile_1
cmp dword [0x4dec34], 0
je 0x4136a9
mov cl, byte [ebp - 5]
cmp cl, byte [ebp - 6]
je 0x413702
inc byte [ebp - 0xe]
cmp byte [ebp - 0xe], 3
jb 0x413680
jmp 0x413702
push 0
push 0x4dec34
push 1
lea eax, [ebp - 5]
push eax
push dword [0x4dea64]
call sub.kernel32.dll_WriteFile_1
mov byte [ebp - 0xf], 0
push 0
push 0x4dec34
push 1
lea edx, [ebp - 6]
push edx
push dword [0x4dea64]
call sub.kernel32.dll_ReadFile_1
cmp dword [0x4dec34], 0
je 0x4136f9
mov cl, byte [ebp - 5]
cmp cl, byte [ebp - 6]
je 0x413702
inc byte [ebp - 0xf]
cmp byte [ebp - 0xf], 3
jb 0x4136d0
add byte [ebp - 7], 0xff
mov byte [ebp - 0x10], 2
mov al, byte [ebp - 0x10]
cmp al, byte [ebp - 7]
jae 0x413840
movsx edx, byte [0x4c5664]
cmp edx, 0x30
jne 0x413744
push 0
push 0x4dec34
push 1
xor ecx, ecx
mov cl, byte [ebp - 0x10]
add ecx, 0x4dead5
push ecx
push dword [0x4dea64]
call sub.RT_USB.DLL_FT_W32_ReadFile_1
jmp 0x413764
push 0
push 0x4dec34
push 1
xor eax, eax
mov al, byte [ebp - 0x10]
add eax, 0x4dead5
push eax
push dword [0x4dea64]
call sub.kernel32.dll_ReadFile_1
cmp dword [0x4dec34], 0
jne 0x413777
mov eax, 1
jmp 0x413896
xor edx, edx
mov dl, byte [ebp - 0x10]
mov cl, 0xff
sub cl, byte [edx + 0x4dead5]
mov byte [ebp - 5], cl
movsx eax, byte [0x4c5664]
cmp eax, 0x30
jne 0x4137e3
push 0
push 0x4dec34
push 1
lea edx, [ebp - 5]
push edx
push dword [0x4dea64]
call sub.RT_USB.DLL_FT_W32_WriteFile_1
mov byte [ebp - 0x11], 0
push 0
push 0x4dec34
push 1
lea ecx, [ebp - 6]
push ecx
push dword [0x4dea64]
call sub.RT_USB.DLL_FT_W32_ReadFile_1
cmp dword [0x4dec34], 0
je 0x4137d8
mov al, byte [ebp - 5]
cmp al, byte [ebp - 6]
je 0x413831
inc byte [ebp - 0x11]
cmp byte [ebp - 0x11], 3
jb 0x4137af
jmp 0x413831
push 0
push 0x4dec34
push 1
lea edx, [ebp - 5]
push edx
push dword [0x4dea64]
call sub.kernel32.dll_WriteFile_1
mov byte [ebp - 0x12], 0
push 0
push 0x4dec34
push 1
lea ecx, [ebp - 6]
push ecx
push dword [0x4dea64]
call sub.kernel32.dll_ReadFile_1
cmp dword [0x4dec34], 0
je 0x413828
mov al, byte [ebp - 5]
cmp al, byte [ebp - 6]
je 0x413831
inc byte [ebp - 0x12]
cmp byte [ebp - 0x12], 3
jb 0x4137ff
inc byte [ebp - 0x10]
mov dl, byte [ebp - 0x10]
cmp dl, byte [ebp - 7]
jb 0x413716
movsx ecx, byte [0x4c5664]
cmp ecx, 0x30
jne 0x413866
push 0
push 0x4dec34
push 1
lea eax, [ebp - 5]
push eax
push dword [0x4dea64]
call sub.RT_USB.DLL_FT_W32_ReadFile_1
jmp 0x41387e
push 0
push 0x4dec34
push 1
lea edx, [ebp - 5]
push edx
push dword [0x4dea64]
call sub.kernel32.dll_ReadFile_1
cmp dword [0x4dec34], 0
jne 0x413894
cmp byte [ebp - 5], 3
je 0x413894
mov eax, 1
jmp 0x413896
xor eax, eax
mov esp, ebp
pop ebp
ret