Function at 0x10001100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2b28
call fcn.100174b0
mov eax, dword [0x10020008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x1400
lea eax, [ebp - 0x2b0c]
mov byte [0x10021a18], 1
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.10007270
push 0x1400
lea eax, [ebp - 0x170c]
push 0
push eax
call fcn.10007270
push 0x200
lea eax, [ebp - 0x30c]
mov dword [ebp - 0x2b10], 0
push 0
push eax
mov dword [ebp - 0x2b1c], 0
call fcn.10007270
push 0xff
lea eax, [ebp - 0x10c]
mov byte [ebp - 0xc], 0
push 0
push eax
mov dword [ebp - 0xb], 0
call fcn.10007270
push esi
push edi
lea eax, [ebp - 0x10c]
push str._szoo_d.bin
push eax
call fcn.10001a20
add esp, 0x40
lea eax, [ebp - 0x10c]
push 0x1001e5ac
push eax
lea eax, [ebp - 0x2b14]
push eax
call fcn.10009374
mov eax, dword [ebp - 0x2b14]
add esp, 0xc
test eax, eax
jne 0x100011df
pop edi
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100062a2
mov esp, ebp
pop ebp
ret
push ebx
push 2
push 0
push eax
call fcn.10009675
push dword [ebp - 0x2b14]
call fcn.10009be7
push dword [ebp - 0x2b14]
mov ebx, eax
mov dword [ebp - 0x2b18], ebx
call fcn.10009bf2
push ebx
call fcn.100062b3
push dword [ebp - 0x2b14]
mov edi, eax
push ebx
push 1
push edi
mov dword [ebp - 0x2b20], edi
call fcn.10009e8c
push dword [ebp - 0x2b14]
mov esi, eax
call fcn.1000a033
add esp, 0x2c
mov dword [ebp - 0x2b14], 0
cmp esi, ebx
je 0x10001262
push edi
call fcn.100062bc
add esp, 4
mov eax, 4
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100062a2
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.device.dll_public:_void___thiscall_device::set_target_command_char_const___char_const__]
mov ecx, 0x10021a20
push 0x1001e5b0
push 0x1001e5b4
call esi
lea eax, [ebp - 0x2b0c]
mov ecx, 0x10021a20
push eax
push str.0004000000
call dword [sym.imp.device.dll_public:_int___thiscall_device::packet_char_const___unsigned_char__]
mov edi, dword [sym.imp.device.dll_public:_bool___thiscall_device::request_unsigned_char___unsigned_short_int__unsigned_char___unsigned_short_int___int_]
lea ecx, [ebp - 0x2b10]
push 0x7530
push ecx
lea ecx, [ebp - 0x170c]
movzx eax, ax
push ecx
push eax
lea eax, [ebp - 0x2b0c]
mov ecx, 0x10021a20
push eax
call edi
test al, al
jne 0x100012c9
mov esi, 0x49e
jmp 0x100016fa
mov ebx, dword [sym.imp.device.dll_public:_int___thiscall_device::unpack_unsigned_char___unsigned_short_int__]
lea eax, [ebp - 0x2b10]
push eax
lea eax, [ebp - 0x170c]
mov ecx, 0x10021a20
push eax
call ebx
test eax, eax
je 0x100012f2
mov esi, 0x49e
jmp 0x100016fa
mov eax, dword [ebp - 0x170c]
cmp al, 0x62
jne 0x1000130e
cmp ah, 0x6f
jne 0x1000130e
cmp byte [ebp - 0x170a], 0x74
je 0x1000143a
push 0x1001e5c4
push 0x1001e5b4
mov ecx, 0x10021a20
call esi
lea eax, [ebp - 0x2b0c]
mov ecx, 0x10021a20
push eax
push str.6406000000
call dword [sym.imp.device.dll_public:_int___thiscall_device::packet_char_const___unsigned_char__]
push 0x7530
lea ecx, [ebp - 0x2b10]
movzx eax, ax
push ecx
lea ecx, [ebp - 0x170c]
push ecx
push eax
lea eax, [ebp - 0x2b0c]
mov ecx, 0x10021a20
push eax
call edi
test al, al
jne 0x10001369
mov esi, 0x4a5
jmp 0x100016fa
lea eax, [ebp - 0x2b10]
mov ecx, 0x10021a20
push eax
lea eax, [ebp - 0x170c]
push eax
call ebx
test eax, eax
je 0x10001398
pop ebx
pop edi
mov eax, 0x4a5
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100062a2
mov esp, ebp
pop ebp
ret
push 0x1001e5b0
push 0x1001e5b4
mov ecx, 0x10021a20
call esi
lea eax, [ebp - 0x2b0c]
mov ecx, 0x10021a20
push eax
push str.0004000000
call dword [sym.imp.device.dll_public:_int___thiscall_device::packet_char_const___unsigned_char__]
push 0x7530
lea ecx, [ebp - 0x2b10]
movzx eax, ax
push ecx
lea ecx, [ebp - 0x170c]
push ecx
push eax
lea eax, [ebp - 0x2b0c]
mov ecx, 0x10021a20
push eax
call edi
test al, al
jne 0x100013f3
mov esi, 0x49e
jmp 0x100016fa
lea eax, [ebp - 0x2b10]
mov ecx, 0x10021a20
push eax
lea eax, [ebp - 0x170c]
push eax
call ebx
test eax, eax
je 0x10001416
mov esi, 0x49e
jmp 0x100016fa
mov eax, dword [ebp - 0x170c]
cmp al, 0x62
jne 0x100016ee
cmp ah, 0x6f
jne 0x100016ee
cmp byte [ebp - 0x170a], 0x74
jne 0x100016ee
push 0x1001e5d4
push 0x1001e5b4
mov ecx, 0x10021a20
call esi
mov esi, dword [ebp - 0x2b18]
lea eax, [ebp - 0x2b0c]
push eax
push 5
lea eax, [ebp - 0xc]
mov dword [ebp - 0xb], esi
push eax
mov ecx, 0x10021a20
call dword [sym.imp.device.dll_public:_int___thiscall_device::packet_char_const___int__unsigned_char__]
push 0x7530
lea ecx, [ebp - 0x2b10]
movzx eax, ax
push ecx
lea ecx, [ebp - 0x170c]
push ecx
push eax
lea eax, [ebp - 0x2b0c]
mov ecx, 0x10021a20
push eax
call edi
test al, al
jne 0x1000149f
mov esi, 0x49f
jmp 0x100016fa
lea eax, [ebp - 0x2b10]
mov ecx, 0x10021a20
push eax
lea eax, [ebp - 0x170c]
push eax
call ebx
test eax, eax
je 0x100014c2
mov esi, 0x49f
jmp 0x100016fa
push 0x1001e5d8
push 0x1001e5b4
mov ecx, 0x10021a20
call dword [sym.imp.device.dll_public:_void___thiscall_device::set_target_command_char_const___char_const__]
xor edx, edx
mov eax, esi
mov ecx, 0x100
div ecx
test edx, edx
mov dword [ebp - 0x2b28], edx
lea ecx, [eax + 1]
cmove ecx, eax
xor esi, esi
mov dword [ebp - 0x2b18], ecx
test ecx, ecx
je 0x100015d6
dec ecx
xor eax, eax
mov dword [ebp - 0x2b24], ecx
nop dword [eax]
cmp esi, ecx
mov byte [ebp - 0x30c], 1
mov edi, 0x100
cmove edi, edx
add eax, dword [ebp - 0x2b20]
push edi
push eax
lea eax, [ebp - 0x307]
mov dword [ebp - 0x30b], edi
push eax
call fcn.10017790
add esp, 0xc
lea eax, [ebp - 0x2b0c]
mov ecx, 0x10021a20
push eax
lea eax, [edi + 5]
push eax
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.device.dll_public:_int___thiscall_device::packet_char_const___int__unsigned_char__]
push 0x7530
lea ecx, [ebp - 0x2b10]
movzx eax, ax
push ecx
lea ecx, [ebp - 0x170c]
push ecx
push eax
lea eax, [ebp - 0x2b0c]
mov ecx, 0x10021a20
push eax
call dword [sym.imp.device.dll_public:_bool___thiscall_device::request_unsigned_char___unsigned_short_int__unsigned_char___unsigned_short_int___int_]
test al, al
je 0x10001637
lea eax, [ebp - 0x2b10]
mov ecx, 0x10021a20
push eax
lea eax, [ebp - 0x170c]
push eax
call ebx
test eax, eax
jne 0x10001637
mov eax, dword [ebp - 0x2b1c]
inc esi
mov ecx, dword [ebp - 0x2b24]
add eax, edi
mov edx, dword [ebp - 0x2b28]
mov dword [ebp - 0x2b1c], eax
cmp esi, dword [ebp - 0x2b18]
jb 0x10001510
mov edi, dword [sym.imp.device.dll_public:_bool___thiscall_device::request_unsigned_char___unsigned_short_int__unsigned_char___unsigned_short_int___int_]
mov esi, dword [sym.imp.device.dll_public:_void___thiscall_device::set_target_command_char_const___char_const__]
mov ecx, 0x10021a20
push 0x1001e5dc
push 0x1001e5b4
call esi
lea eax, [ebp - 0x2b0c]
mov ecx, 0x10021a20
push eax
push str.0206000000
call dword [sym.imp.device.dll_public:_int___thiscall_device::packet_char_const___unsigned_char__]
push 0x7530
lea ecx, [ebp - 0x2b10]
movzx eax, ax
push ecx
lea ecx, [ebp - 0x170c]
push ecx
push eax
lea eax, [ebp - 0x2b0c]
mov ecx, 0x10021a20
push eax
call edi
test al, al
jne 0x10001641
mov esi, 0x4a1
jmp 0x100016fa
mov esi, 0x4a0
jmp 0x100016fa
lea eax, [ebp - 0x2b10]
mov ecx, 0x10021a20
push eax
lea eax, [ebp - 0x170c]
push eax
call ebx
test eax, eax
je 0x10001664
mov esi, 0x4a1
jmp 0x100016fa
push 0x1001e5ec
mov ecx, 0x10021a20
call dword [sym.imp.device.dll_public:_void___thiscall_device::set_package_format_char_const__]
push 0x1001e5b0
push 0x1001e5b4
mov ecx, 0x10021a20
call esi
lea eax, [ebp - 0x2b0c]
mov ecx, 0x10021a20
push eax
push str.0004000000
call dword [sym.imp.device.dll_public:_int___thiscall_device::packet_char_const___unsigned_char__]
push 0x7530
lea ecx, [ebp - 0x2b10]
movzx eax, ax
push ecx
lea ecx, [ebp - 0x170c]
push ecx
push eax
lea eax, [ebp - 0x2b0c]
mov ecx, 0x10021a20
push eax
call edi
test al, al
jne 0x100016cc
mov esi, 0x4a2
jmp 0x100016fa
lea eax, [ebp - 0x2b10]
mov ecx, 0x10021a20
push eax
lea eax, [ebp - 0x170c]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x100016fa
mov esi, 0x4a2
jmp 0x100016fa
mov byte [0x10021a18], 0
mov esi, 0xb
mov eax, dword [ebp - 0x2b20]
test eax, eax
je 0x1000170d
push eax
call fcn.100062bc
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.100062a2
mov esp, ebp
pop ebp
ret