Function at 0x401bd0
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
sub esp, 0x5ec
lea eax, [esp + 0x5c]
push ebx
push ebp
push esi
push edi
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x401c0a
push eax
push str.Initialize_WinSock_Failed__d
call fcn.004026f8
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5ec
ret
mov ecx, dword [str._form_nameformnetwork__methodpost_action_cgi.exe___n_table_border0_cellspacing1__n_tr__td_IP_Address__td__td__input_maxlength15_namef_IP_STATIC_IP_size15_value__s____td___tr__n_tr__td_IP_Subnet_Mask__td__td__input_maxlength15_namef_IP_STATIC_IP_NETMASK_size15_value__s____td___tr__n_tr__td_Gateway_IP_Address__td__td__input_maxlength15_namef_IP_STATIC_IP_GATEWAY_size15_value__s____td___tr__n_tr__td_colspan2_aligncenter__INPUT_TYPEsubmit__INPUT_TYPEreset__input_typehidden_namef_CookieValue_value__s____tr__n__table__n__form__n]
push str.123456789012345
push str.192.168.1.1
push str.255.255.255.0
push str.192.168.1.2
push ecx
lea edx, [esp + 0x210]
push 0x400
push edx
call fcn.00402f5e
lea edi, [esp + 0x218]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
call fcn.00402100
push str.Second_CGI_Program
call fcn.00402110
push str.REQUEST_METHOD
call fcn.0040267b
mov edi, eax
add esp, 0x28
test edi, edi
jne 0x401c84
push str.Unkown_request_type_n
push 0x40c330
call fcn.004027bf
add esp, 8
push 1
call fcn.00402e89
mov esi, str.POST
mov ecx, edi
mov al, byte [ecx]
mov bl, byte [esi]
mov dl, al
cmp al, bl
jne 0x401cb3
test dl, dl
je 0x401caf
mov al, byte [ecx + 1]
mov bl, byte [esi + 1]
mov dl, al
cmp al, bl
jne 0x401cb3
add ecx, 2
add esi, 2
test dl, dl
jne 0x401c8b
xor ecx, ecx
jmp 0x401cb8
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x4020a3
push str.CONTENT_LENGTH
call fcn.0040267b
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x401ce2
push ebp
call fcn.004027b4
mov esi, eax
add esp, 4
test esi, esi
jne 0x401cec
push str.No_data_was_received._n
jmp 0x4020e0
lea ecx, [esi + 1]
push ecx
call fcn.00402560
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4020e8
push 0x40c2f0
push esi
push 1
push ebx
call fcn.0040296c
add esp, 0x10
cmp eax, esi
je 0x401d30
push str.error_reading_input_n
push 0x40c310
call fcn.004027bf
add esp, 8
push 1
call fcn.00402e89
mov ecx, 0x15
xor eax, eax
lea edi, [esp + 0x14]
mov byte [ebx + esi], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.Apply
push ebx
stosb byte es:[edi], al
call fcn.00402240
add esp, 8
test eax, eax
je 0x401e70
lea edx, [esp + 0x56]
push ebx
push edx
push str.camip
call fcn.00401000
add esp, 0xc
cmp eax, 1
jne 0x401f12
lea eax, [esp + 0x66]
push ebx
push eax
push str.camport
call fcn.00401000
add esp, 0xc
cmp eax, 1
jne 0x401f12
lea ecx, [esp + 0x46]
push ebx
push ecx
push str.f_CookieValue
call fcn.00401000
add esp, 0xc
cmp eax, 1
jne 0x401f12
lea edx, [esp + 0x46]
push ebx
push edx
push str.f_CookieValue
call fcn.00401000
add esp, 0xc
cmp eax, 1
jne 0x401f12
push 0x1000
call fcn.00402560
mov esi, eax
mov ecx, 0x400
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
lea eax, [esp + 0x5e]
push ecx
push eax
push str._goform_CfgIP
push str.POST__s_HTTP_1.1_r_nAccept:_image_gif__image_x_xbitmap__image_jpeg__image_pjpeg__application_vnd.ms_powerpoint__application_vnd.ms_excel__application_msword__application_x_shockwave_flash____r_nAccept_Language:_zh_tw_r_nContent_Type:_application_x_www_form_urlencoded_r_nAccept_Encoding:_gzip__deflate_r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__r_nHost:__s_r_nContent_Length:__d_r_nConnection:_Keep_Alive_r_nCache_Control:_no_cache_r_n_r_n_s
push esi
call fcn.00402a87
push ebx
mov edi, eax
call fcn.00402612
push edi
lea ecx, [esp + 0x8a]
push esi
lea edx, [esp + 0x7e]
push ecx
push edx
call fcn.00401080
mov edi, eax
push str.login.asp
push edi
call fcn.00402240
add esp, 0x38
test eax, eax
je 0x401e39
push str.Ok__n
jmp 0x401e3e
push str.Error__n
call fcn.004026f8
add esp, 4
push edi
call fcn.00402612
add esp, 4
push ebp
call fcn.00402612
push esi
call fcn.00402612
add esp, 8
call fcn.00402140
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5ec
ret
lea eax, [esp + 0x10]
push eax
call fcn.00402d80
lea ecx, [esp + 0x14]
push ecx
call fcn.00402c20
mov ecx, eax
mov esi, 0x64
mov eax, dword [ecx + 0x1c]
cdq
idiv esi
mov esi, 0xa
mov eax, edx
cdq
idiv esi
mov eax, dword [ecx + 4]
inc eax
push edx
mov edx, dword [ecx]
push edx
mov edx, dword [ecx + 8]
push eax
mov eax, dword [ecx + 0xc]
inc edx
push edx
mov edx, dword [ecx + 0x10]
push eax
mov eax, dword [ecx + 0x14]
inc edx
add eax, 0x76c
push edx
push eax
lea ecx, [esp + 0x6a]
push str._d_d_d_d_d_d_d
push ecx
call fcn.00402a87
lea edx, [esp + 0x40]
push ebx
push edx
push str.f_LOGIN
call fcn.00401000
add esp, 0x38
cmp eax, 1
jne 0x401f12
lea eax, [esp + 0x56]
push ebx
push eax
push str.camip
call fcn.00401000
add esp, 0xc
cmp eax, 1
jne 0x401f12
lea ecx, [esp + 0x66]
push ebx
push ecx
push str.camport
call fcn.00401000
add esp, 0xc
cmp eax, 1
je 0x401f37
push str.error_n
call fcn.004026f8
call fcn.00402140
push ebx
call fcn.00402612
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5ec
ret
push ebx
call fcn.00402612
push 0x1000
call fcn.00402560
push ebp
mov esi, eax
call fcn.00402612
push 0x64
call fcn.00402560
mov ebp, eax
mov ecx, 0x400
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, 0x19
mov edi, ebp
rep stosd dword es:[edi], eax
lea edx, [esp + 0x24]
lea eax, [esp + 0x56]
push edx
push eax
push str.f_CookieValue_sf_LOGIN_s
push ebp
call fcn.00402a87
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x7e]
push ecx
push str._goform_formLogin
push str.POST__s_HTTP_1.1_r_nAccept:_image_gif__image_x_xbitmap__image_jpeg__image_pjpeg__application_vnd.ms_powerpoint__application_vnd.ms_excel__application_msword__application_x_shockwave_flash____r_nAccept_Language:_zh_tw_r_nContent_Type:_application_x_www_form_urlencoded_r_nAccept_Encoding:_gzip__deflate_r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__r_nHost:__s_r_nContent_Length:__d_r_nConnection:_Keep_Alive_r_nCache_Control:_no_cache_r_n_r_n_s
push esi
call fcn.00402a87
push eax
lea edx, [esp + 0xa2]
push esi
lea eax, [esp + 0x96]
push edx
push eax
call fcn.00401080
add esp, 0x48
mov ebx, eax
push str.main_menu.asp
push ebx
call fcn.00402240
add esp, 8
test eax, eax
push ebx
jne 0x40201b
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._d_n_s
call fcn.004026f8
push str.login_error_n
call fcn.004026f8
call fcn.00402140
push ebx
call fcn.00402612
push ebp
call fcn.00402612
push esi
call fcn.00402612
add esp, 0x1c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5ec
ret
call fcn.00402612
mov ecx, 0x400
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, 0x19
mov edi, ebp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x5a]
push ecx
push str._web_advanced_adv_lan.asp
push str.GET__s_HTTP_1.1_r_nAccept:_image_gif__image_x_xbitmap__image_jpeg__image_pjpeg__application_vnd.ms_powerpoint__application_vnd.ms_excel__application_msword__application_x_shockwave_flash____r_nAccept_Language:_zh_tw_r_nAccept_Encoding:_gzip__deflate_r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__r_nHost:__s_r_nConnection:_Keep_Alive_r_nCache_Control:_no_cache_r_n_r_n
push esi
call fcn.00402a87
push eax
lea edx, [esp + 0x7e]
push esi
lea eax, [esp + 0x72]
push edx
push eax
call fcn.00401080
lea ecx, [esp + 0x38]
mov edi, eax
push ecx
push edi
call fcn.00401400
add esp, 0x2c
test eax, eax
jge 0x401e46
push str.parse_data_error_n
call fcn.004026f8
call fcn.00402140
push edi
call fcn.00402612
push ebp
call fcn.00402612
push esi
call fcn.00402612
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5ec
ret
mov esi, 0x40bd54
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4020d2
test cl, cl
je 0x4020ce
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4020d2
add eax, 2
add esi, 2
test cl, cl
jne 0x4020aa
xor eax, eax
jmp 0x4020d7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4020e8
push str._P_You_used_the_GET_method_to_make_this_request._br__n
call fcn.004026f8
add esp, 4
call fcn.00402140
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5ec
ret