Function at 0x1000b220
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
mov eax, dword [0x100a7914]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.10015900
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x3fc], 0x494
mov dword [ebp - 0x3f8], 0x495
mov dword [ebp - 0x3f4], 0x4a7
call fcn.100204c0
mov dword [ebp - 0x2e0], eax
mov byte [ebp - 0x2ac], 4
mov byte [ebp - 0x2ab], 3
mov byte [ebp - 0x2aa], 0
mov byte [ebp - 0x2a9], 0
mov byte [ebp - 0x2a8], 1
mov byte [ebp - 0x2a7], 0
mov byte [ebp - 0x2a6], 0
mov byte [ebp - 0x2a5], 0
mov byte [ebp - 0x2a4], 0x12
mov byte [ebp - 0x2a3], 0
mov byte [ebp - 0x2a2], 0
mov byte [ebp - 0x2a1], 0
mov eax, dword [str.TECO_Image_Systems]
mov dword [ebp - 0x500], eax
mov ecx, dword [0x100518c0]
mov dword [ebp - 0x4fc], ecx
mov edx, dword [0x100518c4]
mov dword [ebp - 0x4f8], edx
mov eax, dword [0x100518c8]
mov dword [ebp - 0x4f4], eax
mov cx, word [0x100518cc]
mov word [ebp - 0x4f0], cx
mov dl, byte [0x100518ce]
mov byte [ebp - 0x4ee], dl
push 0xed
push 0
lea eax, [ebp - 0x4ed]
push eax
call fcn.10029e70
add esp, 0xc
mov dword [ebp - 0x2e4], 0
mov ecx, 0x202
mov word [ebp - 0x2dc], cx
mov edx, dword [ebp + 0xc]
and edx, 0xffff
movzx eax, dx
mov dword [ebp - 0x504], eax
mov ecx, dword [ebp - 0x504]
sub ecx, 0x494
mov dword [ebp - 0x504], ecx
cmp dword [ebp - 0x504], 0x14
ja case.0x1000b36d.3
mov edx, dword [ebp - 0x504]
movzx eax, byte [edx + 0x1000b950]
jmp dword [eax*4 + 0x1000b92c]
push 0x100a9e10
push 0
push 0x466
push 0x496
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp case.0x1000b36d.3
push 0x400
push 0x100a9810
push 0x4a8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
jmp case.0x1000b36d.3
push 0
push 0x496
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0x498
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0x497
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [0x100a9808]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
push 0
push 0x1009
push 0x497
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x4a8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [0x100a8fe0], 1
jmp case.0x1000b36d.3
push 1
push 0x496
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push 0x498
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push 0x497
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [0x100a9808]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
push 0
push 0x1009
push 0x497
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x4a8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [0x100a8fe0], 0
jmp case.0x1000b36d.3
mov eax, dword [0x100a9808]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
push 0
push 0x1009
push 0x497
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x496
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push 0x4a8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push 0x498
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push 0x497
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [0x100a8fe0], 2
jmp case.0x1000b36d.3
push 0
push 0
push 0x1009
push 0x497
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 8]
push ecx
call section..text
add esp, 4
jmp case.0x1000b36d.3
mov edx, dword [0x100a9808]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 3
lea eax, [ebp - 0x3fc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10015af0
add esp, 0xc
mov dword [ebp - 0x2d4], eax
mov edx, dword [ebp - 0x2d4]
mov dword [ebp - 0x508], edx
cmp dword [ebp - 0x508], 0x494
je 0x1000b617
cmp dword [ebp - 0x508], 0x495
je 0x1000b625
cmp dword [ebp - 0x508], 0x4a7
je 0x1000b655
jmp 0x1000b67a
mov eax, dword [ebp - 0x2e0]
mov dword [eax], 0
jmp 0x1000b67a
mov ecx, dword [ebp - 0x2e0]
mov dword [ecx], 1
push 0x100a9e10
push 0
push 0x466
push 0x496
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x1000b67a
mov eax, dword [ebp - 0x2e0]
mov dword [eax], 2
push 0x400
push 0x100a9810
push 0x4a8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
mov edx, dword [ebp - 0x2e0]
cmp dword [edx], 2
jne 0x1000b762
lea eax, [ebp - 0x198]
push eax
movzx ecx, word [ebp - 0x2dc]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x1c
push 0
lea edx, [ebp - 0x2c8]
push edx
call fcn.10029e70
add esp, 0xc
mov dword [ebp - 0x3ec], 0x1c
mov eax, 0x17
mov word [ebp - 0x2c8], ax
lea ecx, [ebp - 0x3ec]
push ecx
lea edx, [ebp - 0x2c8]
push edx
push 0
push 0x17
push 0x100a9810
call dword [sym.imp.WS2_32.dll_WSAStringToAddressA]
test eax, eax
je 0x1000b75c
push str.TOSHIBA_e_STUDIO2823AMSeries_Scan_Driver
push 0x10051830
lea eax, [ebp - 0x3e8]
push eax
call fcn.1002a35f
add esp, 0xc
push 0x100
lea ecx, [ebp - 0x2a0]
push ecx
push 0x854
mov edx, dword [ebp - 0x1a0]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
lea ecx, [ebp - 0x3e8]
push ecx
lea edx, [ebp - 0x2a0]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x4a8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp case.0x1000b36d.3
call dword [sym.imp.WS2_32.dll_WSACleanup]
call fcn.10020400
mov dword [ebp - 0x2cc], eax
mov edx, dword [ebp - 0x2cc]
push edx
push 2
mov eax, dword [ebp + 8]
push eax
call fcn.10010c30
add esp, 0xc
cmp dword [ebp - 0x2cc], 0
jne 0x1000b866
mov ecx, dword [ebp - 0x1a0]
mov edx, dword [ebp - 0x2e0]
mov eax, dword [edx]
mov dword [ecx + 0x50], eax
mov ecx, dword [ebp - 0x1a0]
cmp dword [ecx + 0x50], 1
jne 0x1000b839
mov edx, dword [0x100a9e10]
sar edx, 0x18
and edx, 0xff
mov byte [ebp - 0x2cd], dl
mov eax, dword [0x100a9e10]
sar eax, 0x10
and eax, 0xff
mov byte [ebp - 0x199], al
mov ecx, dword [0x100a9e10]
sar ecx, 8
and ecx, 0xff
mov byte [ebp - 0x3ed], cl
mov edx, dword [0x100a9e10]
and edx, 0xff
mov byte [ebp - 0x2d5], dl
movzx eax, byte [ebp - 0x2d5]
push eax
movzx ecx, byte [ebp - 0x3ed]
push ecx
movzx edx, byte [ebp - 0x199]
push edx
movzx eax, byte [ebp - 0x2cd]
push eax
push str._d._d._d._d
mov ecx, dword [ebp - 0x1a0]
add ecx, 0x54
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x1000b864
mov edx, dword [ebp - 0x1a0]
cmp dword [edx + 0x50], 2
jne 0x1000b864
push 0x100a9810
push 0x10051830
mov eax, dword [ebp - 0x1a0]
add eax, 0x154
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x1000b8a3
push 0x100aa218
push 0x10051830
mov ecx, dword [ebp - 0x1a0]
add ecx, 0x54
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x100a9e18
push 0x10051830
mov edx, dword [ebp - 0x1a0]
add edx, 0x154
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp case.0x1000b36d.3
mov eax, dword [0x100a9808]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x100aa218
push 0x10051830
mov ecx, dword [ebp - 0x1a0]
add ecx, 0x54
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x100a9e18
push 0x10051830
mov edx, dword [ebp - 0x1a0]
add edx, 0x154
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [ebp - 0x2e0]
mov ecx, dword [ebp - 0x1a0]
mov edx, dword [ecx + 0x50]
mov dword [eax], edx
push 0x67
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_UnregisterHotKey]
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029d6b
mov esp, ebp
pop ebp
ret