Function at 0x404c9a
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
mov eax, 0x26d0
call fcn.00411660
mov eax, dword [ebp + 8]
mov dword [0x4196b4], eax
lea eax, [ebp - 0x198]
mov dword [esp + 4], eax
mov dword [esp], 0x101
call sub.WS2_32.DLL_WSAStartup
sub esp, 8
call sub.COMCTL32.DLL_InitCommonControls
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1d0], 0
mov byte [ebp - 0x1d1], 0
mov dword [esp + 4], 0x417540
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_strtok
mov dword [ebp - 0x1d8], eax
cmp dword [ebp - 0x1d8], 0
je 0x404f2d
mov dword [esp + 4], 0x417543
mov eax, dword [ebp - 0x1d8]
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x404d36
mov byte [ebp - 0x1d1], 1
jmp 0x404f0e
mov dword [esp + 4], str.__help
mov eax, dword [ebp - 0x1d8]
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x404d84
mov dword [esp + 4], 0x41754d
mov eax, dword [ebp - 0x1d8]
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x404d84
mov dword [esp + 4], 0x417550
mov eax, dword [ebp - 0x1d8]
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x404d9c
mov dword [esp], str.usage:_winbox___connect_to____login____password_____n
call sub.msvcrt.dll_printf
mov dword [esp], 0
call sub.msvcrt.dll_exit
cmp byte [ebp - 0x1d1], 0
jne 0x404e0d
cmp dword [ebp - 0x1cc], 9
jne 0x404db3
jmp 0x404f0e
mov dword [esp + 4], 0x417589
mov eax, dword [ebp - 0x1d8]
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x404def
mov eax, dword [ebp - 0x1cc]
mov edx, eax
mov eax, dword [ebp - 0x1d8]
mov dword [ebp + edx*4 - 0x1c8], eax
lea eax, [ebp - 0x1cc]
inc dword [eax]
jmp 0x404f0e
mov eax, dword [ebp - 0x1cc]
mov dword [ebp + eax*4 - 0x1c8], 0x417040
lea eax, [ebp - 0x1cc]
inc dword [eax]
jmp 0x404f0e
mov eax, dword [ebp - 0x1d8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.._s
mov dword [esp + 4], 0x50
lea eax, [ebp - 0x228]
mov dword [esp], eax
call sub.msvcrt.dll__snprintf
lea eax, [ebp - 0x228]
mov dword [esp + 4], eax
mov dword [esp], str.linking__s_n
call sub.msvcrt.dll_printf
mov dword [esp + 8], 8
mov dword [esp + 4], 0
lea eax, [ebp - 0x228]
mov dword [esp], eax
call sub.KERNEL32.DLL_LoadLibraryExA
sub esp, 0xc
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x404eef
lea eax, [ebp - 0x228]
mov dword [esp + 4], eax
mov dword [esp], str.lib__s_loaded_n
call sub.msvcrt.dll_printf
mov dword [esp + 4], str.runEx
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x404ed8
mov dword [esp + 4], 0x4174e8
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
je 0x404f0e
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x1d0], eax
jmp 0x404f0e
call sub.KERNEL32.DLL_GetLastError
mov dword [esp + 8], eax
lea eax, [ebp - 0x228]
mov dword [esp + 4], eax
mov dword [esp], str.lib__s_not_loaded_error_ld_n
call sub.msvcrt.dll_printf
mov dword [esp + 4], 0x417540
mov dword [esp], 0
call sub.msvcrt.dll_strtok
mov dword [ebp - 0x1d8], eax
jmp 0x404d03
mov eax, dword [ebp - 0x1cc]
mov dword [ebp + eax*4 - 0x1c8], 0
lea edx, [ebp - 0x2b8]
mov eax, pe_nt_image_headers32
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sub.msvcrt.dll_memset
lea edx, [ebp - 0x338]
mov eax, pe_nt_image_headers32
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sub.msvcrt.dll_memset
lea edx, [ebp - 0x3b8]
mov eax, pe_nt_image_headers32
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sub.msvcrt.dll_memset
lea edx, [ebp - 0x438]
mov eax, pe_nt_image_headers32
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sub.msvcrt.dll_memset
mov dword [ebp - 0x230], 0x50
cmp dword [ebp - 0x1cc], 0
je 0x404ff4
mov dword [esp + 8], pe_nt_image_headers32
mov eax, dword [ebp - 0x1c8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x2b8]
mov dword [esp], eax
call sub.msvcrt.dll_strncpy
mov byte [ebp - 0x239], 0
cmp dword [ebp - 0x1cc], 1
jbe 0x405024
mov dword [esp + 8], pe_nt_image_headers32
mov eax, dword [ebp - 0x1c4]
mov dword [esp + 4], eax
lea eax, [ebp - 0x3b8]
mov dword [esp], eax
call sub.msvcrt.dll_strncpy
mov byte [ebp - 0x339], 0
cmp dword [ebp - 0x1cc], 2
jbe 0x405054
mov dword [esp + 8], pe_nt_image_headers32
mov eax, dword [ebp - 0x1c0]
mov dword [esp + 4], eax
lea eax, [ebp - 0x438]
mov dword [esp], eax
call sub.msvcrt.dll_strncpy
mov byte [ebp - 0x3b9], 0
mov byte [ebp - 0x439], 0
lea eax, [ebp - 0x228]
mov dword [esp], eax
call fcn.00403bca
cmp dword [ebp - 0x1cc], 2
jbe 0x405080
lea eax, [ebp - 0x438]
mov dword [ebp - 0x269c], eax
jmp 0x40508a
mov dword [ebp - 0x269c], 0
mov eax, dword [ebp - 0x269c]
mov dword [esp + 0xc], eax
cmp dword [ebp - 0x1cc], 1
jbe 0x4050ab
lea eax, [ebp - 0x3b8]
mov dword [ebp - 0x26a0], eax
jmp 0x4050b5
mov dword [ebp - 0x26a0], 0
mov eax, dword [ebp - 0x26a0]
mov dword [esp + 8], eax
cmp dword [ebp - 0x1cc], 0
je 0x4050d6
lea eax, [ebp - 0x2b8]
mov dword [ebp - 0x26a4], eax
jmp 0x4050e0
mov dword [ebp - 0x26a4], 0
mov eax, dword [ebp - 0x26a4]
mov dword [esp + 4], eax
lea eax, [ebp - 0x228]
mov dword [esp], eax
call fcn.00403f1c
test al, al
jne 0x405103
mov byte [ebp - 0x439], 1
cmp byte [ebp - 0x439], 0
je 0x40512b
lea eax, [ebp - 0x228]
mov dword [esp], eax
call fcn.00409724
cmp eax, 2
jne 0x405132
mov dword [esp], 0
call sub.msvcrt.dll_exit
mov byte [ebp - 0x439], 1
lea eax, [ebp - 0x228]
mov dword [esp], eax
call fcn.004120b0
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], eax
lea eax, [ebp - 0x2b8]
mov dword [esp], eax
call sub.msvcrt.dll_strncpy
mov byte [ebp - 0x239], 0
lea eax, [ebp - 0x228]
mov dword [esp], eax
call fcn.00412014
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], eax
lea eax, [ebp - 0x3b8]
mov dword [esp], eax
call sub.msvcrt.dll_strncpy
mov byte [ebp - 0x339], 0
lea eax, [ebp - 0x228]
mov dword [esp], eax
call fcn.00411f94
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], eax
lea eax, [ebp - 0x438]
mov dword [esp], eax
call sub.msvcrt.dll_strncpy
mov byte [ebp - 0x3b9], 0
mov dword [esp + 8], pe_nt_image_headers32
lea eax, [ebp - 0x2b8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x338]
mov dword [esp], eax
call sub.msvcrt.dll_strncpy
mov byte [ebp - 0x2b9], 0
lea edi, [ebp - 0x458]
cld
mov ecx, 6
mov al, 0
rep stosb byte es:[edi], al
lea eax, [ebp - 0x458]
mov dword [esp + 4], eax
lea eax, [ebp - 0x2b8]
mov dword [esp], eax
call fcn.00408e40
mov byte [ebp - 0x459], al
cmp byte [ebp - 0x459], 0
jne 0x4052f9
lea eax, [ebp - 0x338]
mov dword [esp + 4], 0x3a
mov dword [esp], eax
call sub.msvcrt.dll_strchr
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x4052f9
mov dword [esp + 8], 0xa
lea eax, [ebp - 0x1d8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x22c]
inc eax
mov dword [esp], eax
call sub.msvcrt.dll_strtoul
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x1d8]
cmp byte [eax], 0
jne 0x405293
cmp dword [ebp - 0x230], 0
je 0x405293
cmp dword [ebp - 0x230], 0xffff
ja 0x405293
jmp 0x4052f0
mov eax, dword [ebp - 0x22c]
inc eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x41758c
lea eax, [ebp - 0x568]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x417509
lea eax, [ebp - 0x568]
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
lea eax, [ebp - 0x228]
mov dword [esp], eax
call fcn.00403da0
jmp 0x40505b
mov eax, dword [ebp - 0x22c]
mov byte [eax], 0
lea eax, [ebp - 0x228]
mov dword [esp], eax
call fcn.00412040
mov byte [ebp - 0x569], al
lea eax, [ebp - 0x228]
mov dword [esp], eax
call fcn.004120a4
mov byte [ebp - 0x56a], al
lea eax, [ebp - 0x568]
mov dword [esp], eax
call fcn.00409e14
lea eax, [ebp - 0x568]
mov dword [esp], eax
call fcn.00409632
lea eax, [ebp - 0x568]
add eax, 8
mov dword [esp + 4], eax
lea eax, [ebp - 0x2598]
mov dword [esp], eax
call fcn.004127a8
mov dword [ebp - 0x22c], 0xffffffff
mov dword [ebp - 0x1d8], 0
cmp byte [ebp - 0x459], 0
jne 0x40551f
lea eax, [ebp - 0x338]
mov dword [esp + 4], eax
lea eax, [ebp - 0x568]
mov dword [esp], eax
call fcn.00409e72
lea eax, [ebp - 0x338]
mov dword [esp + 4], eax
lea eax, [ebp - 0x2598]
mov dword [esp], eax
call fcn.004065ea
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0xffffffff
jne 0x40541f
lea eax, [ebp - 0x338]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x41759e
lea eax, [ebp - 0x2698]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x2698]
mov dword [esp + 4], eax
lea eax, [ebp - 0x568]
mov dword [esp], eax
call fcn.0040a3f8
lea eax, [ebp - 0x2598]
mov dword [esp], eax
call fcn.004047c4
lea eax, [ebp - 0x568]
mov dword [esp], eax
call fcn.00411ea0
lea eax, [ebp - 0x228]
mov dword [esp], eax
call fcn.00403da0
jmp 0x40505b
mov dword [esp + 8], 0x2063
lea eax, [ebp - 0x338]
mov dword [esp + 4], eax
lea eax, [ebp - 0x568]
mov dword [esp], eax
call fcn.00409ec4
mov dword [esp], 0xc
call fcn.00412924
mov ebx, eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0041212c
mov eax, ebx
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0x1d8]
mov dword [esp], eax
call fcn.0040776e
test al, al
jne 0x4055e0
mov eax, dword [ebp - 0x230]
mov dword [esp + 8], eax
lea eax, [ebp - 0x338]
mov dword [esp + 4], eax
lea eax, [ebp - 0x568]
mov dword [esp], eax
call fcn.00409ec4
cmp dword [ebp - 0x1d8], 0
je 0x4054c0
mov eax, dword [ebp - 0x1d8]
mov edx, dword [eax]
add edx, 4
mov eax, dword [ebp - 0x1d8]
mov dword [esp], eax
mov eax, dword [edx]
call eax
mov dword [esp], 0xc
call fcn.00412924
mov ebx, eax
mov eax, dword [ebp - 0x230]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00411ef0
mov eax, ebx
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call fcn.00408ff6
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], eax
lea eax, [ebp - 0x338]
mov dword [esp], eax
call sub.msvcrt.dll_strncpy
jmp 0x4055e0
lea eax, [ebp - 0x458]
mov dword [esp], eax
call fcn.00408f8c
mov dword [esp + 4], eax
mov dword [esp], str.connecting_to__s_n
call sub.msvcrt.dll_printf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 0x50
call fcn.00412924
mov ebx, eax
lea eax, [ebp - 0x458]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00408174
mov eax, ebx
mov dword [ebp - 0x1d8], eax
mov dword [esp + 8], 0x5051
lea eax, [ebp - 0x338]
mov dword [esp + 4], eax
lea eax, [ebp - 0x568]
mov dword [esp], eax
call fcn.00409ec4
lea eax, [ebp - 0x2598]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1d8]
mov dword [esp], eax
call fcn.004083c6
test al, al
jne 0x4055e0
lea eax, [ebp - 0x2598]
mov dword [esp], eax
call fcn.004047c4
lea eax, [ebp - 0x568]
mov dword [esp], eax
call fcn.00411ea0
lea eax, [ebp - 0x228]
mov dword [esp], eax
call fcn.00403da0
jmp 0x40505b
cmp dword [ebp - 0x1d0], 0
jne 0x4056ff
mov eax, dword [ebp - 0x1d8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x2598]
mov dword [esp], eax
call fcn.004048b8
test al, al
jne 0x405638
lea eax, [ebp - 0x2598]
mov dword [esp], eax
call fcn.004047c4
lea eax, [ebp - 0x568]
mov dword [esp], eax
call fcn.00411ea0
lea eax, [ebp - 0x228]
mov dword [esp], eax
call fcn.00403da0
jmp 0x40505b
lea eax, [ebp - 0x568]
mov dword [esp], eax
call fcn.00409f1e
lea eax, [ebp - 0x2598]
mov dword [esp], eax
call fcn.00404a02
lea eax, [ebp - 0x338]
mov dword [esp + 4], eax
lea eax, [ebp - 0x568]
mov dword [esp], eax
call fcn.00409f4c
lea eax, [ebp - 0x2598]
mov dword [esp], eax
call fcn.004049be
mov dword [esp + 4], eax
lea eax, [ebp - 0x568]
mov dword [esp], eax
call fcn.00411e40
mov eax, dword [ebp - 0x1d8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x2598]
mov dword [esp], eax
call fcn.00404a68
test al, al
jne 0x4056d7
lea eax, [ebp - 0x2598]
mov dword [esp], eax
call fcn.004047c4
lea eax, [ebp - 0x568]
mov dword [esp], eax
call fcn.00411ea0
lea eax, [ebp - 0x228]
mov dword [esp], eax
call fcn.00403da0
jmp 0x40505b
lea eax, [ebp - 0x568]
mov dword [esp], eax
call fcn.00409ff8
lea eax, [ebp - 0x2598]
mov dword [esp], eax
call fcn.00404af0
mov dword [esp], 0
call fcn.004014c6
lea eax, [ebp - 0x568]
mov dword [esp], eax
call fcn.004096d6
lea edi, [ebp - 0x548]
cld
mov edx, 0
mov eax, 0xa
mov ecx, eax
mov eax, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x548], str.secure
cmp byte [ebp - 0x569], 0
je 0x405743
mov dword [ebp - 0x26a8], 0x4175cc
jmp 0x40574d
mov dword [ebp - 0x26a8], 0x4175ce
mov eax, dword [ebp - 0x26a8]
mov dword [ebp - 0x544], eax
mov dword [ebp - 0x540], str.persist
cmp byte [ebp - 0x56a], 0
je 0x405778
mov dword [ebp - 0x26ac], 0x4175cc
jmp 0x405782
mov dword [ebp - 0x26ac], 0x4175ce
mov eax, dword [ebp - 0x26ac]
mov dword [ebp - 0x53c], eax
mov eax, dword [ebp - 0x1d8]
mov edx, dword [eax]
add edx, 0xc
lea eax, [ebp - 0x548]
add eax, 0x10
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1d8]
mov dword [esp], eax
mov eax, dword [edx]
call eax
cmp dword [ebp - 0x1d0], 0
jne 0x4057f4
lea eax, [ebp - 0x548]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x438]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x3b8]
mov dword [esp + 8], eax
lea eax, [ebp - 0x338]
mov dword [esp + 4], eax
lea eax, [ebp - 0x2598]
mov dword [esp], eax
call fcn.00404c24
jmp 0x40582c
lea eax, [ebp - 0x548]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x438]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x3b8]
mov dword [esp + 8], eax
lea eax, [ebp - 0x338]
mov dword [esp + 4], eax
mov eax, dword [0x4196b4]
mov dword [esp], eax
mov eax, dword [ebp - 0x1d0]
call eax
cmp dword [ebp - 0x1d8], 0
je 0x40584d
mov eax, dword [ebp - 0x1d8]
mov edx, dword [eax]
add edx, 4
mov eax, dword [ebp - 0x1d8]
mov dword [esp], eax
mov eax, dword [edx]
call eax
lea eax, [ebp - 0x2598]
mov dword [esp], eax
call fcn.004047c4
lea eax, [ebp - 0x568]
mov dword [esp], eax
call fcn.00411ea0
lea eax, [ebp - 0x228]
mov dword [esp], eax
call fcn.00403da0
mov eax, 0
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret 0x10