Function at 0x4053f0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa90
mov eax, dword [0x49c048]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x48546c]
mov byte [ebp - 0x468], al
push 0x3ff
push 0
lea ecx, [ebp - 0x467]
push ecx
call fcn.0042cab0
add esp, 0xc
mov dl, byte [0x48546c]
mov byte [ebp - 0xa5c], dl
push 0x3ff
push 0
lea eax, [ebp - 0xa5b]
push eax
call fcn.0042cab0
add esp, 0xc
mov dword [ebp - 0xa80], 0
mov dword [ebp - 0xa6c], 0xfffffffa
mov dword [ebp - 0xa8c], 0x3ff
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x328]
push edx
push str.Authorization:_Basic__s
lea eax, [ebp - 0x65c]
push eax
call fcn.0040b650
add esp, 0xc
push 0
lea ecx, [ebp - 0xa8c]
push ecx
lea edx, [ebp - 0x468]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
mov dword [ebp - 0xa6c], eax
cmp dword [ebp - 0xa6c], 0
jne 0x4054e8
mov ecx, dword [ebp + 8]
push ecx
push str.InternetCanonicalizeUrl_failed:__s
push 0x232
push str.C:_trunk2CMGCMG_ServerSRCSMSProSmsPro.cpp
push 2
push 1
call dword [sym.imp.NSL.dll_TraceWriteFileLine]
add esp, 0x18
push str.InternetCanonicalizeUrl
push 0
push 0xfffffffffffffffa
call dword [sym.imp.NSL.dll_err_handler]
add esp, 0xc
mov eax, dword [ebp - 0xa6c]
jmp 0x405984
lea edx, [ebp - 0x468]
push edx
push str.HTTP_Request:__s
push 0x236
push str.C:_trunk2CMGCMG_ServerSRCSMSProSmsPro.cpp
push 2
push 2
call dword [sym.imp.NSL.dll_TraceWriteFileLine]
add esp, 0x18
push 0
push 0x84400100
push 0xffffffffffffffff
lea eax, [ebp - 0x65c]
push eax
lea ecx, [ebp - 0x468]
push ecx
mov edx, dword [0x49dbb0]
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0xa70], eax
cmp dword [ebp - 0xa70], 0
jne 0x405623
push 0
push 0
push 0
push 0
push str.NETWISE_CMG
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [0x49dbb0], eax
cmp dword [0x49dbb0], 0
jne 0x405588
push 0x48546c
call dword [sym.imp.NSL.dll_Set_currentobject]
add esp, 4
push str.InternetOpen
push 0
push 0xfffffffffffffffa
call dword [sym.imp.NSL.dll_err_handler]
add esp, 0xc
jmp 0x405623
push 0
push 0x80000000
push 0xffffffffffffffff
lea eax, [ebp - 0x65c]
push eax
lea ecx, [ebp - 0x468]
push ecx
mov edx, dword [0x49dbb0]
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0xa70], eax
cmp dword [ebp - 0xa70], 0
jne 0x405623
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa84], eax
mov al, byte [0x48546c]
mov byte [ebp - 0x68], al
push 0x63
push 0
lea ecx, [ebp - 0x67]
push ecx
call fcn.0042cab0
add esp, 0xc
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ebp - 0xa84]
push eax
call fcn.00404b00
add esp, 8
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0xa84]
push edx
push str.InternetOpenUrl___Error____d_____Str____s_
push 0x247
push str.C:_trunk2CMGCMG_ServerSRCSMSProSmsPro.cpp
push 2
push 2
call dword [sym.imp.NSL.dll_TraceWriteFileLine]
add esp, 0x1c
mov dword [ebp - 0xa6c], 0xfffffffa
cmp dword [ebp - 0xa70], 0
je 0x40597e
lea eax, [ebp - 0xa80]
push eax
push 0x400
lea ecx, [ebp - 0x468]
push ecx
mov edx, dword [ebp - 0xa70]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0xa90], eax
cmp dword [ebp - 0xa90], 0
jne 0x405684
push 0x48546c
call dword [sym.imp.NSL.dll_Set_currentobject]
add esp, 4
push 0x485df8
push 0
push 0xfffffffffffffffa
call dword [sym.imp.NSL.dll_err_handler]
add esp, 0xc
jmp 0x405971
cmp dword [ebp - 0xa80], 0
jbe 0x405720
mov eax, dword [ebp - 0xa80]
push eax
push str.dwBytesRead___d
push 0x259
push str.C:_trunk2CMGCMG_ServerSRCSMSProSmsPro.cpp
push 2
push 1
call dword [sym.imp.NSL.dll_TraceWriteFileLine]
add esp, 0x18
mov ecx, dword [ebp - 0xa80]
sub ecx, 1
mov dword [ebp - 0xa88], ecx
cmp dword [ebp - 0xa88], 0x400
jae 0x4056d1
jmp 0x4056d6
call fcn.0042ad68
mov edx, dword [ebp - 0xa88]
mov byte [ebp + edx - 0x468], 0
lea eax, [ebp - 0xa5c]
push eax
lea ecx, [ebp - 0x468]
push ecx
call dword [sym.imp.NSL.dll_str_tolower]
add esp, 8
lea edx, [ebp - 0xa5c]
push edx
push str.szTmpBuffer2___s
push 0x25c
push str.C:_trunk2CMGCMG_ServerSRCSMSProSmsPro.cpp
push 2
push 5
call dword [sym.imp.NSL.dll_TraceWriteFileLine]
add esp, 0x18
jmp 0x40573c
push str.No_data_received
push 0x25f
push str.C:_trunk2CMGCMG_ServerSRCSMSProSmsPro.cpp
push 2
push 2
call dword [sym.imp.NSL.dll_TraceWriteFileLine]
add esp, 0x14
push str._status_
lea eax, [ebp - 0xa5c]
push eax
call fcn.0040a460
add esp, 8
mov dword [ebp - 0xa60], eax
push str._request_id_
lea ecx, [ebp - 0xa5c]
push ecx
call fcn.0040a460
add esp, 8
mov dword [ebp - 0xa64], eax
push str._message_
lea edx, [ebp - 0xa5c]
push edx
call fcn.0040a460
add esp, 8
mov dword [ebp - 0xa68], eax
cmp dword [ebp - 0xa60], 0
je 0x4057fb
mov dword [ebp - 0xa74], 0
push str._status_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp - 0xa60]
mov dword [ebp - 0xa60], eax
mov eax, dword [ebp - 0xa60]
add eax, dword [ebp - 0xa74]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4057ec
mov edx, dword [ebp - 0xa60]
add edx, dword [ebp - 0xa74]
movsx eax, byte [edx]
cmp eax, 0x3c
je 0x4057ec
mov ecx, dword [ebp - 0xa74]
add ecx, 1
mov dword [ebp - 0xa74], ecx
jmp 0x4057b4
mov edx, dword [ebp - 0xa60]
add edx, dword [ebp - 0xa74]
mov byte [edx], 0
cmp dword [ebp - 0xa64], 0
je 0x40586c
mov dword [ebp - 0xa78], 0
push str._request_id_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp - 0xa64]
mov dword [ebp - 0xa64], eax
mov eax, dword [ebp - 0xa64]
add eax, dword [ebp - 0xa78]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40585d
mov edx, dword [ebp - 0xa64]
add edx, dword [ebp - 0xa78]
movsx eax, byte [edx]
cmp eax, 0x3c
je 0x40585d
mov ecx, dword [ebp - 0xa78]
add ecx, 1
mov dword [ebp - 0xa78], ecx
jmp 0x405825
mov edx, dword [ebp - 0xa64]
add edx, dword [ebp - 0xa78]
mov byte [edx], 0
cmp dword [ebp - 0xa68], 0
je 0x4058dd
mov dword [ebp - 0xa7c], 0
push str._message_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp - 0xa68]
mov dword [ebp - 0xa68], eax
mov eax, dword [ebp - 0xa68]
add eax, dword [ebp - 0xa7c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4058ce
mov edx, dword [ebp - 0xa68]
add edx, dword [ebp - 0xa7c]
movsx eax, byte [edx]
cmp eax, 0x3c
je 0x4058ce
mov ecx, dword [ebp - 0xa7c]
add ecx, 1
mov dword [ebp - 0xa7c], ecx
jmp 0x405896
mov edx, dword [ebp - 0xa68]
add edx, dword [ebp - 0xa7c]
mov byte [edx], 0
mov eax, dword [ebp - 0xa64]
push eax
mov ecx, dword [ebp - 0xa60]
push ecx
push str.SMS_Pro_returned_Status__s__Request_id__s_
push 0x289
push str.C:_trunk2CMGCMG_ServerSRCSMSProSmsPro.cpp
push 2
push 2
call dword [sym.imp.NSL.dll_TraceWriteFileLine]
add esp, 0x1c
push 0x30
mov edx, dword [ebp - 0xa60]
push edx
call fcn.0040a440
add esp, 8
test eax, eax
je 0x405944
push str.SMS_RES_DELIVERED
push 0x28c
push str.C:_trunk2CMGCMG_ServerSRCSMSProSmsPro.cpp
push 2
push 6
call dword [sym.imp.NSL.dll_TraceWriteFileLine]
add esp, 0x14
mov dword [ebp - 0xa6c], 0
jmp 0x405971
mov eax, dword [ebp - 0xa68]
push eax
push str.SMS_Pro_error_message:__s
push 0x290
push str.C:_trunk2CMGCMG_ServerSRCSMSProSmsPro.cpp
push 2
push 2
call dword [sym.imp.NSL.dll_TraceWriteFileLine]
add esp, 0x18
mov dword [ebp - 0xa6c], 0xfffffffd
mov ecx, dword [ebp - 0xa70]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0xa6c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042af58
mov esp, ebp
pop ebp
ret