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 0x576beb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1184
call fcn.0053f090
mov eax, dword [0x5ef2a0]
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 - 0x1138], 7
mov dword [ebp - 0x113c], 0
mov word [ebp - 0x114c], 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 - 0x114c]
call fcn.00423cb0
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.0053ce38
add esp, 4
xor eax, eax
mov dword [ebp - 0x104c], 7
cmp dword [ebp - 0x1138], 8
mov dword [ebp - 0x1050], 0
mov word [ebp - 0x1060], ax
jb 0x4225d7
push dword [ebp - 0x114c]
call fcn.0053ce38
add esp, 4
xor al, al
jmp 0x4230a0
lea edx, [ebp - 0x114c]
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 0x5e37b4
lea eax, [ebp - 0x1184]
mov dword [ebp - 0x1184], 1
push eax
call fcn.0053d5d3
cmp dword [ebp - 0x10cc], 0
je 0x422680
lea eax, [ebp - 0x10dc]
push eax
lea ecx, [ebp - 0x10c4]
call fcn.00429630
add esp, 4
push eax
lea ecx, [edi + 0x74]
mov byte [ebp - 4], 4
call fcn.00429960
push eax
add eax, 0x10
lea ecx, [edi + 0x74]
push eax
push 0
lea eax, [ebp - 0x1190]
push eax
call fcn.004296a0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x10ac], 0x10
jb 0x422680
push dword [ebp - 0x10c0]
call fcn.0053ce38
add esp, 4
lea ecx, [ecx]
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.00420f90
mov byte [ebp - 4], 3
cmp dword [ebp - 0x10ac], 0x10
jb 0x4226c1
push dword [ebp - 0x10c0]
call fcn.0053ce38
add esp, 4
push ecx
lea eax, [ebp - 0x1078]
push eax
lea ecx, [edi + 0x24]
call fcn.00427eb0
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 0x5e37b4
lea eax, [ebp - 0x1188]
mov dword [ebp - 0x1188], 3
push eax
call fcn.0053d5d3
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 0x5e37b4
lea eax, [ebp - 0x117c]
mov dword [ebp - 0x117c], 0xa
push eax
call fcn.0053d5d3
test esi, esi
je 0x422f7c
cmp byte [ebp - 0x114e], 0
lea eax, [ebp - 0x1018]
push esi
push eax
jne 0x422f57
lea ecx, [ebp - 0x1048]
mov dword [ebp - 0x1034], 0xf
mov dword [ebp - 0x1038], 0
mov byte [ebp - 0x1048], 0
call fcn.00421120
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 0x5e37b4
lea eax, [ebp - 0x1174]
mov dword [ebp - 0x1174], 0xd
push eax
call fcn.0053d5d3
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.00421120
mov dword [ebp - method.CHttpHeader.virtual_0], vtable.CHttpHeader.0
mov dword [ebp - 0x1130], 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 dword [ebp - 0x10e8], 0xf
mov dword [ebp - 0x10ec], 0
mov byte [ebp - 0x10fc], 0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x10e4]
mov dword [ebp - 0x10e4], 0
mov dword [ebp - 0x10e0], 0
call fcn.00429570
mov dword [ebp - 0x10e4], eax
lea eax, [ebp - 0x1030]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x1134]
call fcn.00428790
mov edi, dword [ebp - 0x115c]
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x1130]
mov dword [edi + 4], eax
cmp eax, 0x190
jne 0x4228f3
push 0x5e37b4
lea eax, [ebp - 0x1178]
mov dword [ebp - 0x1178], 5
push eax
call fcn.0053d5d3
cmp eax, 0x12c
jle 0x422c96
cmp eax, 0x190
jge 0x422c96
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.00421120
lea eax, [ebp - 0x10a8]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x10c0]
push eax
lea ecx, [ebp - 0x1134]
call fcn.00427ce0
mov edx, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x1090]
call fcn.004242e0
cmp dword [ebp - 0x10ac], 0x10
jb 0x42297b
push dword [ebp - 0x10c0]
call fcn.0053ce38
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 0x4229b1
push dword [ebp - 0x10a8]
call fcn.0053ce38
add esp, 4
push 7
push 0
push 0x5d3578
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 0x422af8
push 8
push 0
push 0x5d3588
lea ecx, [ebp - 0x1090]
call fcn.00423920
test eax, eax
je 0x422af8
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1090]
push eax
lea ecx, [ebp - 0x1060]
call fcn.00423b50
cmp dword [ebp - 0x107c], 8
jb 0x422a31
push dword [ebp - 0x1090]
call fcn.0053ce38
add esp, 4
xor eax, eax
mov dword [ebp - 0x107c], 7
lea ecx, [ebp - 0x1134]
mov dword [ebp - 0x1080], 0
mov word [ebp - 0x1090], ax
call fcn.00427c40
cmp dword [ebp - 0x101c], 0x10
jb 0x422a70
push dword [ebp - 0x1030]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0x1034], 0x10
mov dword [ebp - 0x101c], 0xf
mov dword [ebp - 0x1020], 0
mov byte [ebp - 0x1030], 0
jb 0x422aa2
push dword [ebp - 0x1048]
call fcn.0053ce38
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 0x422ad8
push dword [ebp - 0x1078]
call fcn.0053ce38
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 0x422b0e
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 0x422b52
push dword [ebp - 0x1090]
call fcn.0053ce38
add esp, 4
xor eax, eax
mov dword [ebp - 0x107c], 7
lea ecx, [ebp - 0x1134]
mov dword [ebp - 0x1080], 0
mov word [ebp - 0x1090], ax
call fcn.00427c40
cmp dword [ebp - 0x101c], 0x10
jb 0x422b91
push dword [ebp - 0x1030]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0x1034], 0x10
mov dword [ebp - 0x101c], 0xf
mov dword [ebp - 0x1020], 0
mov byte [ebp - 0x1030], 0
jb 0x422bc3
push dword [ebp - 0x1048]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0x1064], 0x10
mov dword [ebp - 0x1034], 0xf
mov dword [ebp - 0x1038], 0
mov byte [ebp - 0x1048], 0
jb 0x422bf5
push dword [ebp - 0x1078]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0x10c8], 0x10
mov dword [ebp - 0x1064], 0xf
mov dword [ebp - 0x1068], 0
mov byte [ebp - 0x1078], 0
jb 0x422c27
push dword [ebp - 0x10dc]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0x104c], 8
mov dword [ebp - 0x10c8], 0xf
mov dword [ebp - 0x10cc], 0
mov byte [ebp - 0x10dc], 0
jb 0x422c59
push dword [ebp - 0x1060]
call fcn.0053ce38
add esp, 4
xor eax, eax
mov dword [ebp - 0x104c], 7
cmp dword [ebp - 0x1138], 8
mov dword [ebp - 0x1050], 0
mov word [ebp - 0x1060], ax
jb 0x42309e
push dword [ebp - 0x114c]
call fcn.0053ce38
add esp, 4
jmp 0x42309e
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.00421120
lea eax, [ebp - 0x10a8]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x10c0]
push eax
lea ecx, [ebp - 0x1134]
call fcn.00427ce0
cmp dword [eax + 0x14], 0x10
jb 0x422ce8
mov eax, dword [eax]
push eax
call fcn.0053fad6
add esp, 4
mov edi, eax
cmp dword [ebp - 0x10ac], 0x10
jb 0x422d0a
push dword [ebp - 0x10c0]
call fcn.0053ce38
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 0x422d40
push dword [ebp - 0x10a8]
call fcn.0053ce38
add esp, 4
mov eax, dword [ebp - 0x1160]
mov dword [eax], edi
lea eax, [edi - 1]
cmp eax, 0x7fffff
ja 0x422f3c
push edi
call fcn.0053f188
sub esi, ebx
add esp, 4
sub esi, 4
mov ecx, eax
mov dword [ebp - 0x1158], ecx
test esi, esi
jle 0x422d96
lea eax, [ebp - 0x1014]
add eax, ebx
mov ebx, dword [ebp - 0x1154]
push esi
push eax
lea eax, [ebx + ecx]
push eax
call fcn.0053da30
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x1154], ebx
jmp 0x422d9c
mov ebx, dword [ebp - 0x1154]
cmp edi, ebx
jne 0x422dff
lea ecx, [ebp - 0x1134]
mov bl, 1
call fcn.00427c40
cmp dword [ebp - 0x101c], 0x10
jb 0x422dc4
push dword [ebp - 0x1030]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0x1034], 0x10
mov dword [ebp - 0x101c], 0xf
mov dword [ebp - 0x1020], 0
mov byte [ebp - 0x1030], 0
jb 0x422f82
push dword [ebp - 0x1048]
call fcn.0053ce38
add esp, 4
jmp 0x422f82
mov eax, dword [ebp - 0x10e4]
lea ecx, [ebp - 0x10e4]
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.00428f40
push dword [ebp - 0x10e4]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0x10e8], 0x10
jb 0x422e50
push dword [ebp - 0x10fc]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0x1100], 0x10
mov dword [ebp - 0x10e8], 0xf
mov dword [ebp - 0x10ec], 0
mov byte [ebp - 0x10fc], 0
jb 0x422e82
push dword [ebp - 0x1114]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0x1118], 0x10
mov dword [ebp - 0x1100], 0xf
mov dword [ebp - 0x1104], 0
mov byte [ebp - 0x1114], 0
jb 0x422eb4
push dword [ebp - 0x112c]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0x101c], 0x10
mov dword [ebp - 0x1118], 0xf
mov dword [ebp - 0x111c], 0
mov byte [ebp - 0x112c], 0
jb 0x422ee6
push dword [ebp - 0x1030]
call fcn.0053ce38
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 0x422f1c
push dword [ebp - 0x1048]
call fcn.0053ce38
add esp, 4
mov dword [ebp - 0x1034], 0xf
mov dword [ebp - 0x1038], 0
mov byte [ebp - 0x1048], 0
jmp 0x422730
push 0x5e37b4
lea eax, [ebp - 0x1180]
mov dword [ebp - 0x1180], 0xc
push eax
call fcn.0053d5d3
mov eax, dword [ebp - 0x1158]
add eax, ebx
push eax
call fcn.0053da30
add ebx, esi
add esp, 0xc
mov dword [ebp - 0x1154], ebx
cmp ebx, edi
jl 0x422730
mov bl, 1
jmp 0x422f82
mov bl, byte [ebp - 0x114d]
cmp dword [ebp - 0x1064], 0x10
jb 0x422f99
push dword [ebp - 0x1078]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0x10c8], 0x10
mov dword [ebp - 0x1064], 0xf
mov dword [ebp - 0x1068], 0
mov byte [ebp - 0x1078], 0
jb 0x422fcb
push dword [ebp - 0x10dc]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0x104c], 8
mov dword [ebp - 0x10c8], 0xf
mov dword [ebp - 0x10cc], 0
mov byte [ebp - 0x10dc], 0
jb 0x422ffd
push dword [ebp - 0x1060]
call fcn.0053ce38
add esp, 4
xor eax, eax
mov dword [ebp - 0x104c], 7
cmp dword [ebp - 0x1138], 8
mov dword [ebp - 0x1050], 0
mov word [ebp - 0x1060], ax
jb 0x423031
push dword [ebp - 0x114c]
call fcn.0053ce38
add esp, 4
mov ecx, dword [ebp - 0x1168]
jmp 0x423092
test bl, bl
je 0x42309e
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.0053d5c4
mov esp, ebp
pop ebp
ret 0xc