Function at 0x51dd50
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x12c]
mov ecx, 0x4b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x66486c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x34]
test ecx, ecx
je 0x51ddd6
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
call fcn.004a8010
add esp, 8
movzx edx, al
test edx, edx
je 0x51ddd6
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 8]
movzx edx, word [ebp + 0xc]
cmp ecx, edx
jne 0x51ddd6
mov eax, dword [ebp - 0xc]
add eax, 0xc
push eax
mov ecx, dword [ebp + 0x20]
call fcn.004a435c
mov eax, dword [ebp - 0xc]
add eax, 0x14
push eax
mov ecx, dword [ebp + 0x24]
call fcn.004a71bf
xor eax, eax
jmp 0x51e167
push 0
mov ecx, dword [ebp + 0x20]
call fcn.004a671f
push 0
mov ecx, dword [ebp + 0x24]
call fcn.004a587e
lea ecx, [ebp - 0x18]
call fcn.004a8b46
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004a5f09
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x51de94
cmp dword [0x6637fc], 0
jne 0x51de2b
mov eax, dword [str.platinum.core.http.clienttask]
push eax
call fcn.004a7b88
add esp, 4
mov dword [0x6637fc], eax
cmp dword [0x6637fc], 0
je 0x51de88
mov ecx, dword [0x6637fc]
call fcn.004a9082
cmp eax, 0x2bc
jg 0x51de88
push str._address.ResolveName_hostname__name_resolver_timeout__
mov eax, dword [ebp - 0x24]
push eax
call fcn.004a702a
add esp, 4
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push str.NPT_CHECK_failed__result_d___s____s_
push str.PLT_HttpTcpConnector::Connect
mov edx, dword [0x663864]
add edx, 0x10
push edx
push str.d:work_studio_backupmediaserversource_source_codeplatinum_src_0_6_3_683platinum_sourcecoreplthttpclienttask.cpp
push 0x2bc
mov eax, dword [0x6637fc]
push eax
call fcn.004a5216
add esp, 0x24
xor eax, eax
jne 0x51de0f
mov eax, dword [ebp - 0x24]
jmp 0x51e167
xor eax, eax
jne 0x51ddf2
cmp dword [0x6637fc], 0
jne 0x51deb8
mov eax, dword [str.platinum.core.http.clienttask]
push eax
call fcn.004a7b88
add esp, 4
mov dword [0x6637fc], eax
cmp dword [0x6637fc], 0
je 0x51df08
mov ecx, dword [0x6637fc]
call fcn.004a9082
cmp eax, 0xc8
jg 0x51df08
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.NPT_HttpTcpConnector::Connect___will_connect_to__s:_d_n
push str.PLT_HttpTcpConnector::Connect
mov edx, dword [0x663864]
add edx, 0x13
push edx
push str.d:work_studio_backupmediaserversource_source_codeplatinum_src_0_6_3_683platinum_sourcecoreplthttpclienttask.cpp
push 0xc8
mov eax, dword [0x6637fc]
push eax
call fcn.004a5216
add esp, 0x20
xor eax, eax
jne 0x51de9c
mov ecx, dword [ebp - 0xc]
add ecx, 0x2c
call fcn.004a51ee
mov dword [ebp - 0x12c], eax
mov esi, esp
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x12c]
mov eax, dword [edx + 0x1c]
call eax
cmp esi, esp
call fcn.004a7520
mov ecx, dword [ebp - 0xc]
add ecx, 0x2c
call fcn.004a51ee
mov dword [ebp - 0x12c], eax
mov esi, esp
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x12c]
mov eax, dword [edx + 0x20]
call eax
cmp esi, esp
call fcn.004a7520
movzx eax, word [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x34]
call fcn.004a7a7f
mov ecx, dword [ebp - 0xc]
add ecx, 0x2c
call fcn.004a51ee
mov dword [ebp - 0x12c], eax
mov esi, esp
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x12c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x12c]
mov edx, dword [eax + 8]
call edx
cmp esi, esp
call fcn.004a7520
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x51e046
cmp dword [0x6637fc], 0
jne 0x51dfdd
mov eax, dword [str.platinum.core.http.clienttask]
push eax
call fcn.004a7b88
add esp, 4
mov dword [0x6637fc], eax
cmp dword [0x6637fc], 0
je 0x51e03a
mov ecx, dword [0x6637fc]
call fcn.004a9082
cmp eax, 0x2bc
jg 0x51e03a
push str._m_Socket__Connect_socket_address__connection_timeout__
mov eax, dword [ebp - 0x40]
push eax
call fcn.004a702a
add esp, 4
push eax
mov ecx, dword [ebp - 0x40]
push ecx
push str.NPT_CHECK_failed__result_d___s____s_
push str.PLT_HttpTcpConnector::Connect
mov edx, dword [0x663864]
add edx, 0x18
push edx
push str.d:work_studio_backupmediaserversource_source_codeplatinum_src_0_6_3_683platinum_sourcecoreplthttpclienttask.cpp
push 0x2bc
mov eax, dword [0x6637fc]
push eax
call fcn.004a5216
add esp, 0x24
xor eax, eax
jne 0x51dfc1
mov eax, dword [ebp - 0x40]
jmp 0x51e167
xor eax, eax
jne 0x51df7f
mov ecx, dword [ebp - 0xc]
add ecx, 0x2c
call fcn.004a51ee
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0xc]
add eax, 0xc
mov esi, esp
push eax
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x12c]
mov eax, dword [edx + 0x10]
call eax
cmp esi, esp
call fcn.004a7520
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x51e093
mov eax, dword [ebp - 0x4c]
jmp 0x51e167
xor eax, eax
jne 0x51e04e
mov ecx, dword [ebp - 0xc]
add ecx, 0x2c
call fcn.004a51ee
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0xc]
add eax, 0x14
mov esi, esp
push eax
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x12c]
mov eax, dword [edx + 0x14]
call eax
cmp esi, esp
call fcn.004a7520
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x51e0dc
mov eax, dword [ebp - 0x58]
jmp 0x51e167
xor eax, eax
jne 0x51e097
mov ecx, dword [ebp - 0xc]
add ecx, 0x2c
call fcn.004a51ee
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov esi, esp
push eax
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x12c]
mov eax, dword [edx + 0x18]
call eax
cmp esi, esp
call fcn.004a7520
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x51e122
mov eax, dword [ebp - 0x64]
jmp 0x51e167
xor eax, eax
jne 0x51e0e0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
call fcn.004a71dd
mov eax, dword [ebp - 0xc]
mov cx, word [ebp + 0xc]
mov word [eax + 8], cx
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x34], 1
mov eax, dword [ebp - 0xc]
add eax, 0xc
push eax
mov ecx, dword [ebp + 0x20]
call fcn.004a435c
mov eax, dword [ebp - 0xc]
add eax, 0x14
push eax
mov ecx, dword [ebp + 0x24]
call fcn.004a71bf
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x51e198]
call fcn.004a8880
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a59eb
add esp, 0x12c
cmp ebp, esp
call fcn.004a7520
mov esp, ebp
pop ebp
ret 0x20