Function at 0x4224a0
Capabilities:
Check http status code
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58631b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1184
call fcn.0054da90
mov eax, dword [0x602280]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x115c], edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1168], eax
mov dword [ebp - 0x1164], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1160], eax
mov dword [ebp - 0x1170], eax
xor al, al
mov byte [ebp - 0x114d], al
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x116c], edi
mov dword [ebp - 0x1158], 0
mov dword [ebp - 0x10e0], 7
mov dword [ebp - 0x10e4], 0
mov word [ebp - 0x10f4], ax
mov dword [ebp - 0x104c], 7
mov dword [ebp - 0x1050], eax
mov word [ebp - 0x1060], ax
lea eax, [ebp - 0x1154]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1060]
mov dword [ebp - 0x1154], 0x50
push eax
lea edx, [ebp - 0x10f4]
call fcn.00423d20
mov esi, dword [ebp - 0x1154]
mov eax, 0x1bb
add esp, 8
cmp si, ax
jne 0x4225de
cmp dword [ebp - 0x104c], 8
jb 0x4225a3
push dword [ebp - 0x1060]
call fcn.0054b7e0
add esp, 4
xor eax, eax
mov dword [ebp - 0x104c], 7
cmp dword [ebp - 0x10e0], 8
mov dword [ebp - 0x1050], 0
mov word [ebp - 0x1060], ax
jb 0x4225d7
push dword [ebp - 0x10f4]
call fcn.0054b7e0
add esp, 4
xor al, al
jmp 0x42309a
lea edx, [ebp - 0x10f4]
lea ecx, [ebp - 0x10dc]
call fcn.00423660
push esi
lea eax, [ebp - 0x10dc]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.00421640
test al, al
jne 0x422621
push 0x5f60cc
lea eax, [ebp - 0x1184]
mov dword [ebp - 0x1184], 1
push eax
call fcn.0054bf83
cmp dword [ebp - 0x10cc], 0
je 0x422680
lea eax, [ebp - 0x10dc]
push eax
lea ecx, [ebp - 0x10c4]
call fcn.004296a0
add esp, 4
push eax
lea ecx, [edi + 0x74]
mov byte [ebp - 4], 4
call fcn.00429920
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x1190]
push eax
lea ecx, [edi + 0x74]
call fcn.00429710
mov byte [ebp - 4], 3
cmp dword [ebp - 0x10ac], 0x10
jb 0x422680
push dword [ebp - 0x10c0]
call fcn.0054b7e0
add esp, 4
lea esp, [esp]
lea edx, [ebp - 0x1060]
lea ecx, [ebp - 0x10c0]
call fcn.00423660
lea ecx, [edi + 0x5c]
mov byte [ebp - 4], 5
cmp ecx, eax
je 0x4226a6
push 0xffffffffffffffff
push 0
push eax
call fcn.00420f50
mov byte [ebp - 4], 3
cmp dword [ebp - 0x10ac], 0x10
jb 0x4226c1
push dword [ebp - 0x10c0]
call fcn.0054b7e0
add esp, 4
push ecx
lea eax, [ebp - 0x1078]
push eax
lea ecx, [edi + 0x24]
call fcn.00427f20
mov byte [ebp - 4], 6
lea eax, [ebp - 0x1078]
cmp dword [ebp - 0x1064], 0x10
push 0
push dword [ebp - 0x1068]
cmovae eax, dword [ebp - 0x1078]
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x42271b
push 0x5f60cc
lea eax, [ebp - 0x1188]
mov dword [ebp - 0x1188], 3
push eax
call fcn.0054bf83
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x1154], ebx
mov byte [ebp - 0x114e], bl
jmp 0x422730
push 0
push 0x1000
lea eax, [ebp - 0x1018]
push eax
mov eax, dword [ebp - 0x115c]
push dword [eax + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42276f
push 0x5f60cc
lea eax, [ebp - 0x117c]
mov dword [ebp - 0x117c], 0xa
push eax
call fcn.0054bf83
test esi, esi
je 0x422f76
cmp byte [ebp - 0x114e], 0
lea eax, [ebp - 0x1018]
push esi
push eax
jne 0x422f51
lea ecx, [ebp - 0x1048]
mov dword [ebp - 0x1034], 0xf
mov dword [ebp - 0x1038], 0
mov byte [ebp - 0x1048], 0
call fcn.004210e0
push 4
push 0
push str._r_n_r_n
lea ecx, [ebp - 0x1048]
mov byte [ebp - 4], 7
call fcn.004232c0
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4227ec
push 0x5f60cc
lea eax, [ebp - 0x1174]
mov dword [ebp - 0x1174], 0xd
push eax
call fcn.0054bf83
push ebx
lea eax, [ebp - 0x1018]
mov dword [ebp - 0x101c], 0xf
push eax
lea ecx, [ebp - 0x1030]
mov dword [ebp - 0x1020], 0
mov byte [ebp - 0x1030], 0
call fcn.004210e0
mov dword [ebp - method.CHttpHeader.virtual_0], vtable.CHttpHeader.0
mov dword [ebp - 0x1148], 0
mov dword [ebp - 0x1130], 0xf
mov dword [ebp - 0x1134], 0
mov byte [ebp - 0x1144], 0
mov dword [ebp - 0x1118], 0xf
mov dword [ebp - 0x111c], 0
mov byte [ebp - 0x112c], 0
mov dword [ebp - 0x1100], 0xf
mov dword [ebp - 0x1104], 0
mov byte [ebp - 0x1114], 0
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x10fc], 0
mov dword [ebp - 0x10f8], 0
call fcn.004295e0
mov dword [ebp - 0x10fc], eax
lea eax, [ebp - 0x1030]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x114c]
call fcn.00428800
mov edi, dword [ebp - 0x115c]
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x1148]
mov dword [edi + 4], eax
cmp eax, 0x190
jne 0x4228ed
push 0x5f60cc
lea eax, [ebp - 0x1178]
mov dword [ebp - 0x1178], 5
push eax
call fcn.0054bf83
cmp eax, 0x12c
jle 0x422c90
cmp eax, 0x190
jge 0x422c90
push 8
push str.Location
lea ecx, [ebp - 0x10a8]
mov dword [ebp - 0x1094], 0xf
mov dword [ebp - 0x1098], 0
mov byte [ebp - 0x10a8], 0
call fcn.004210e0
lea eax, [ebp - 0x10a8]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x10c0]
push eax
lea ecx, [ebp - 0x114c]
call fcn.00427d40
mov edx, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x1090]
call fcn.00424350
cmp dword [ebp - 0x10ac], 0x10
jb 0x422975
push dword [ebp - 0x10c0]
call fcn.0054b7e0
add esp, 4
mov dword [ebp - 0x10ac], 0xf
mov dword [ebp - 0x10b0], 0
mov byte [ebp - 0x10c0], 0
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x1094], 0x10
jb 0x4229ab
push dword [ebp - 0x10a8]
call fcn.0054b7e0
add esp, 4
push 7
push 0
push 0x5e4c48
lea ecx, [ebp - 0x1090]
mov dword [ebp - 0x1094], 0xf
mov dword [ebp - 0x1098], 0
mov byte [ebp - 0x10a8], 0
call fcn.00423920
test eax, eax
je 0x422af2
push 8
push 0
push 0x5e4c58
lea ecx, [ebp - 0x1090]
call fcn.00423920
test eax, eax
je 0x422af2
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1090]
push eax
lea ecx, [ebp - 0x1060]
call fcn.00423bc0
cmp dword [ebp - 0x107c], 8
jb 0x422a2b
push dword [ebp - 0x1090]
call fcn.0054b7e0
add esp, 4
xor eax, eax
mov dword [ebp - 0x107c], 7
lea ecx, [ebp - 0x114c]
mov dword [ebp - 0x1080], 0
mov word [ebp - 0x1090], ax
call fcn.00427ca0
cmp dword [ebp - 0x101c], 0x10
jb 0x422a6a
push dword [ebp - 0x1030]
call fcn.0054b7e0
add esp, 4
cmp dword [ebp - 0x1034], 0x10
mov dword [ebp - 0x101c], 0xf
mov dword [ebp - 0x1020], 0
mov byte [ebp - 0x1030], 0
jb 0x422a9c
push dword [ebp - 0x1048]
call fcn.0054b7e0
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1064], 0x10
mov dword [ebp - 0x1034], 0xf
mov dword [ebp - 0x1038], 0
mov byte [ebp - 0x1048], 0
jb 0x422ad2
push dword [ebp - 0x1078]
call fcn.0054b7e0
add esp, 4
mov dword [ebp - 0x1064], 0xf
mov dword [ebp - 0x1068], 0
mov byte [ebp - 0x1078], 0
jmp 0x422680
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x422b08
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 8], 0xffffffff
push dword [ebp - 0x1160]
cmp dword [ebp - 0x107c], 8
lea edx, [ebp - 0x1090]
mov eax, dword [edi]
mov ecx, dword [ebp - 0x1168]
cmovae edx, dword [ebp - 0x1090]
push ecx
mov eax, dword [eax + 8]
mov ecx, edi
push edx
call eax
cmp dword [ebp - 0x107c], 8
mov bl, al
jb 0x422b4c
push dword [ebp - 0x1090]
call fcn.0054b7e0
add esp, 4
xor eax, eax
mov dword [ebp - 0x107c], 7
lea ecx, [ebp - 0x114c]
mov dword [ebp - 0x1080], 0
mov word [ebp - 0x1090], ax
call fcn.00427ca0
cmp dword [ebp - 0x101c], 0x10
jb 0x422b8b
push dword [ebp - 0x1030]
call fcn.0054b7e0
add esp, 4
cmp dword [ebp - 0x1034], 0x10
mov dword [ebp - 0x101c], 0xf
mov dword [ebp - 0x1020], 0
mov byte [ebp - 0x1030], 0
jb 0x422bbd
push dword [ebp - 0x1048]
call fcn.0054b7e0
add esp, 4
cmp dword [ebp - 0x1064], 0x10
mov dword [ebp - 0x1034], 0xf
mov dword [ebp - 0x1038], 0
mov byte [ebp - 0x1048], 0
jb 0x422bef
push dword [ebp - 0x1078]
call fcn.0054b7e0
add esp, 4
cmp dword [ebp - 0x10c8], 0x10
mov dword [ebp - 0x1064], 0xf
mov dword [ebp - 0x1068], 0
mov byte [ebp - 0x1078], 0
jb 0x422c21
push dword [ebp - 0x10dc]
call fcn.0054b7e0
add esp, 4
cmp dword [ebp - 0x104c], 8
mov dword [ebp - 0x10c8], 0xf
mov dword [ebp - 0x10cc], 0
mov byte [ebp - 0x10dc], 0
jb 0x422c53
push dword [ebp - 0x1060]
call fcn.0054b7e0
add esp, 4
xor eax, eax
mov dword [ebp - 0x104c], 7
cmp dword [ebp - 0x10e0], 8
mov dword [ebp - 0x1050], 0
mov word [ebp - 0x1060], ax
jb 0x423098
push dword [ebp - 0x10f4]
call fcn.0054b7e0
add esp, 4
jmp 0x423098
push 0xe
push str.Content_Length
lea ecx, [ebp - 0x10a8]
mov dword [ebp - 0x1094], 0xf
mov dword [ebp - 0x1098], 0
mov byte [ebp - 0x10a8], 0
call fcn.004210e0
lea eax, [ebp - 0x10a8]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x10c0]
push eax
lea ecx, [ebp - 0x114c]
call fcn.00427d40
cmp dword [eax + 0x14], 0x10
jb 0x422ce2
mov eax, dword [eax]
push eax
call fcn.0054e4e6
add esp, 4
mov edi, eax
cmp dword [ebp - 0x10ac], 0x10
jb 0x422d04
push dword [ebp - 0x10c0]
call fcn.0054b7e0
add esp, 4
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x1094], 0x10
mov dword [ebp - 0x10ac], 0xf
mov dword [ebp - 0x10b0], 0
mov byte [ebp - 0x10c0], 0
jb 0x422d3a
push dword [ebp - 0x10a8]
call fcn.0054b7e0
add esp, 4
mov eax, dword [ebp - 0x1160]
mov dword [eax], edi
lea eax, [edi - 1]
cmp eax, 0x7fffff
ja 0x422f36
push edi
call fcn.0054db88
sub esi, ebx
add esp, 4
sub esi, 4
mov ecx, eax
mov dword [ebp - 0x1158], ecx
test esi, esi
jle 0x422d90
lea eax, [ebp - 0x1014]
add eax, ebx
mov ebx, dword [ebp - 0x1154]
push esi
push eax
lea eax, [ebx + ecx]
push eax
call fcn.0054c3e0
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x1154], ebx
jmp 0x422d96
mov ebx, dword [ebp - 0x1154]
cmp edi, ebx
jne 0x422df9
lea ecx, [ebp - 0x114c]
mov bl, 1
call fcn.00427ca0
cmp dword [ebp - 0x101c], 0x10
jb 0x422dbe
push dword [ebp - 0x1030]
call fcn.0054b7e0
add esp, 4
cmp dword [ebp - 0x1034], 0x10
mov dword [ebp - 0x101c], 0xf
mov dword [ebp - 0x1020], 0
mov byte [ebp - 0x1030], 0
jb 0x422f7c
push dword [ebp - 0x1048]
call fcn.0054b7e0
add esp, 4
jmp 0x422f7c
mov eax, dword [ebp - 0x10fc]
lea ecx, [ebp - 0x10fc]
push eax
mov dword [ebp - method.CHttpHeader.virtual_0], vtable.CHttpHeader.0
mov byte [ebp - 0x114e], 1
push dword [eax]
lea eax, [ebp - 0x118c]
push eax
call fcn.00428fb0
push dword [ebp - 0x10fc]
call fcn.0054b7e0
add esp, 4
cmp dword [ebp - 0x1100], 0x10
jb 0x422e4a
push dword [ebp - 0x1114]
call fcn.0054b7e0
add esp, 4
cmp dword [ebp - 0x1118], 0x10
mov dword [ebp - 0x1100], 0xf
mov dword [ebp - 0x1104], 0
mov byte [ebp - 0x1114], 0
jb 0x422e7c
push dword [ebp - 0x112c]
call fcn.0054b7e0
add esp, 4
cmp dword [ebp - 0x1130], 0x10
mov dword [ebp - 0x1118], 0xf
mov dword [ebp - 0x111c], 0
mov byte [ebp - 0x112c], 0
jb 0x422eae
push dword [ebp - 0x1144]
call fcn.0054b7e0
add esp, 4
cmp dword [ebp - 0x101c], 0x10
mov dword [ebp - 0x1130], 0xf
mov dword [ebp - 0x1134], 0
mov byte [ebp - 0x1144], 0
jb 0x422ee0
push dword [ebp - 0x1030]
call fcn.0054b7e0
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0x1034], 0x10
mov dword [ebp - 0x101c], 0xf
mov dword [ebp - 0x1020], 0
mov byte [ebp - 0x1030], 0
jb 0x422f16
push dword [ebp - 0x1048]
call fcn.0054b7e0
add esp, 4
mov dword [ebp - 0x1034], 0xf
mov dword [ebp - 0x1038], 0
mov byte [ebp - 0x1048], 0
jmp 0x422730
push 0x5f60cc
lea eax, [ebp - 0x1180]
mov dword [ebp - 0x1180], 0xc
push eax
call fcn.0054bf83
mov eax, dword [ebp - 0x1158]
add eax, ebx
push eax
call fcn.0054c3e0
add ebx, esi
add esp, 0xc
mov dword [ebp - 0x1154], ebx
cmp ebx, edi
jl 0x422730
mov bl, 1
jmp 0x422f7c
mov bl, byte [ebp - 0x114d]
cmp dword [ebp - 0x1064], 0x10
jb 0x422f93
push dword [ebp - 0x1078]
call fcn.0054b7e0
add esp, 4
cmp dword [ebp - 0x10c8], 0x10
mov dword [ebp - 0x1064], 0xf
mov dword [ebp - 0x1068], 0
mov byte [ebp - 0x1078], 0
jb 0x422fc5
push dword [ebp - 0x10dc]
call fcn.0054b7e0
add esp, 4
cmp dword [ebp - 0x104c], 8
mov dword [ebp - 0x10c8], 0xf
mov dword [ebp - 0x10cc], 0
mov byte [ebp - 0x10dc], 0
jb 0x422ff7
push dword [ebp - 0x1060]
call fcn.0054b7e0
add esp, 4
xor eax, eax
mov dword [ebp - 0x104c], 7
cmp dword [ebp - 0x10e0], 8
mov dword [ebp - 0x1050], 0
mov word [ebp - 0x1060], ax
jb 0x42302b
push dword [ebp - 0x10f4]
call fcn.0054b7e0
add esp, 4
mov ecx, dword [ebp - 0x1168]
jmp 0x42308c
test bl, bl
je 0x423098
mov eax, dword [ebp - 0x1158]
mov dword [ecx], eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0054bf74
mov esp, ebp
pop ebp
ret 0xc