Function at 0x401460
Capabilities:
Check http status code
Get graphical window text
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [ebp + 0xc]
cmp eax, 2
je 0x401e6d
cmp eax, 0x111
je 0x4015ca
cmp eax, 1
jne 0x401e79
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x14
mov dword [esp + 0x18], 0x118
mov dword [esp + 0x14], 0x14
mov dword [esp + 0x10], 0xa
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], str.Enter_passcode_to_uninstall_Trinetra_Agent
mov dword [esp + 4], str.STATIC
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x19
mov dword [esp + 0x18], 0x96
mov dword [esp + 0x14], 0x32
mov dword [esp + 0x10], 0x32
mov dword [esp + 0xc], 0x50800020
mov dword [esp + 8], 0x40c0a2
mov dword [esp + 4], str.EDIT
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [0x40fa44], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x19
mov dword [esp + 0x18], 0x4b
mov dword [esp + 0x14], 0x5a
mov dword [esp + 0x10], 0x5a
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], str.Submit
mov dword [esp + 4], str.BUTTON
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [0x40fa4c], eax
jmp 0x401e9f
mov edx, dword [ebp + 0x14]
mov eax, dword [0x40fa4c]
cmp edx, eax
jne 0x401e9e
mov eax, dword [ebp + 0x10]
shr eax, 0x10
test ax, ax
jne 0x401e9e
mov eax, dword [0x40fa44]
mov dword [esp], eax
call sym._GetWindowTextLengthA_4
sub esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov eax, dword [0x40fa44]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetWindowTextA_12
sub esp, 0xc
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.A_WinHTTP_Example_Program_1.0
call sym._WinHttpOpen_20
sub esp, 0x14
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x401e25
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1f90
mov dword [esp + 4], str.192.168.166.57
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._WinHttpConnect_16
sub esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401dda
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str._OpenSearchEndpoint_verifyUninstallPassword
mov dword [esp + 4], str.POST
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._WinHttpOpenRequest_28
sub esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x401d8f
mov dword [ebp - 0x24], str.Content_Type:_application_json_r_n
mov dword [ebp - 0x28], str._password_:__s_
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sym.___mingw_snprintf
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._sprintf
mov dword [ebp - 0x3c], 0x1388
mov dword [esp + 0xc], 4
lea eax, [ebp - 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 4], 6
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._WinHttpSetOption_16
sub esp, 0x10
test eax, eax
jne 0x4017a0
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Error_setting_timeout.
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._MessageBoxA_16
sub esp, 0x10
jmp 0x401e9f
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._WinHttpSendRequest_28
sub esp, 0x1c
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x401c73
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._WinHttpReceiveResponse_8
sub esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x401ba0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 4
mov dword [esp + 0x14], 0
lea eax, [ebp - 0x44]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x40]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x20000013
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._WinHttpQueryHeaders_24
sub esp, 0x18
mov eax, dword [ebp - 0x40]
cmp eax, 0xc8
je 0x401956
mov eax, dword [str.abhijeet]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x401898
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Server_Unreachable
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._MessageBoxA_16
sub esp, 0x10
mov eax, dword [str.abhijeet]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4018e2
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Submit
mov dword [esp + 4], str.Correct_password._Access_granted_
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._MessageBoxA_16
sub esp, 0x10
mov dword [esp], 0
call sym._exit
mov eax, dword [0x40f020]
add eax, 1
mov dword [0x40f020], eax
mov eax, dword [0x40f020]
cmp eax, 2
jle 0x40192b
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Maximum_attempts_reached._Exiting...
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._MessageBoxA_16
sub esp, 0x10
mov dword [esp], 1
call sym._exit
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Submit
mov dword [esp + 4], str.Wrong_password._Access_denied.
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._MessageBoxA_16
sub esp, 0x10
jmp 0x401d7f
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._WinHttpQueryDataAvailable_8
sub esp, 8
test eax, eax
jne 0x40199e
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Error__u_in_WinHttpQueryDataAvailable._n
call sym._printf
jmp 0x401d7f
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4019cd
mov dword [esp], str.Out_of_memory
call sym._puts
mov dword [ebp - 0x48], 0
jmp 0x401d7f
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x4c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._WinHttpReadData_16
sub esp, 0x10
test eax, eax
jne 0x401a2b
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Error__u_in_WinHttpReadData._n
call sym._printf
jmp 0x401d7f
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._puts
mov dword [esp + 4], str._verification_:
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._strstr
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401b85
add dword [ebp - 0xc], 0xf
jmp 0x401a60
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x20
je 0x401a5c
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x3a
je 0x401a5c
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x22
je 0x401a5c
mov dword [esp + 8], 4
mov dword [esp + 4], str.true
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._strncmp
test eax, eax
jne 0x401acf
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Submit
mov dword [esp + 4], str.Correct_password._Access_granted_
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._MessageBoxA_16
sub esp, 0x10
mov dword [esp], 0
call sym._exit
mov dword [esp + 8], 5
mov dword [esp + 4], str.false
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._strncmp
test eax, eax
jne 0x401b5f
mov eax, dword [0x40f024]
add eax, 1
mov dword [0x40f024], eax
mov eax, dword [0x40f024]
cmp eax, 2
jle 0x401b37
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Maximum_attempts_reached._Exiting...
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._MessageBoxA_16
sub esp, 0x10
mov dword [esp], 1
call sym._exit
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Submit
mov dword [esp + 4], str.Wrong_password._Access_denied.
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._MessageBoxA_16
sub esp, 0x10
jmp 0x401b85
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Submit
mov dword [esp + 4], str.Invalid_verification_status.
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._MessageBoxA_16
sub esp, 0x10
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x401964
jmp 0x401d7f
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Error__u_in_WinHttpReceiveResponse._n
call sym._printf
mov eax, dword [str.abhijeet]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x401bff
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Submit
mov dword [esp + 4], str.Correct_password._Access_granted_
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._MessageBoxA_16
sub esp, 0x10
mov dword [esp], 0
call sym._exit
mov eax, dword [0x40f028]
add eax, 1
mov dword [0x40f028], eax
mov eax, dword [0x40f028]
cmp eax, 2
jle 0x401c48
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Maximum_attempts_reached._Exiting...
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._MessageBoxA_16
sub esp, 0x10
mov dword [esp], 1
call sym._exit
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Submit
mov dword [esp + 4], str.Wrong_password._Access_denied.
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._MessageBoxA_16
sub esp, 0x10
jmp 0x401d7f
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Error__u_in_WinHttpSendRequest._n
call sym._printf
mov eax, dword [str.abhijeet]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x401cc6
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Server_Unreachable
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._MessageBoxA_16
sub esp, 0x10
mov eax, dword [str.abhijeet]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x401d10
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Submit
mov dword [esp + 4], str.Correct_password._Access_granted_
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._MessageBoxA_16
sub esp, 0x10
mov dword [esp], 0
call sym._exit
mov eax, dword [0x40f02c]
add eax, 1
mov dword [0x40f02c], eax
mov eax, dword [0x40f02c]
cmp eax, 2
jle 0x401d59
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Maximum_attempts_reached._Exiting...
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._MessageBoxA_16
sub esp, 0x10
mov dword [esp], 1
call sym._exit
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Submit
mov dword [esp + 4], str.Wrong_password._Access_denied.
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._MessageBoxA_16
sub esp, 0x10
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._WinHttpCloseHandle_4
sub esp, 4
jmp 0x401dca
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Error__u_in_WinHttpOpenRequest._n
call sym._printf
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Error_opening_request.
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._MessageBoxA_16
sub esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._WinHttpCloseHandle_4
sub esp, 4
jmp 0x401e15
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Error__u_in_WinHttpConnect._n
call sym._printf
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Error_connecting_to_server.
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._MessageBoxA_16
sub esp, 0x10
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._WinHttpCloseHandle_4
sub esp, 4
jmp 0x401e60
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Error__u_in_WinHttpOpen._n
call sym._printf
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Error_opening_session.
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._MessageBoxA_16
sub esp, 0x10
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._free
jmp 0x401e9e
mov dword [esp], 1
call sym._exit
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._DefWindowProcA_16
sub esp, 0x10
jmp 0x401ea4
nop
mov eax, 0
leave
ret 0x10