Function at 0x422510
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 0x5f2e1b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1184
call fcn.005ba320
mov eax, dword [0x689300]
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.00423e30
mov esi, dword [ebp - 0x1154]
mov eax, 0x1bb
add esp, 8
cmp si, ax
jne 0x42264e
cmp dword [ebp - 0x104c], 8
jb 0x422613
push dword [ebp - 0x1060]
call fcn.00470aa0
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 0x422647
push dword [ebp - 0x114c]
call fcn.00470aa0
add esp, 4
xor al, al
jmp 0x423110
lea edx, [ebp - 0x114c]
lea ecx, [ebp - 0x10dc]
call fcn.00423710
push esi
lea eax, [ebp - 0x10dc]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.004216b0
test al, al
jne 0x422691
push 0x67c9ac
lea eax, [ebp - 0x1184]
mov dword [ebp - 0x1184], 1
push eax
call fcn.005b8783
cmp dword [ebp - 0x10cc], 0
je 0x4226f0
lea eax, [ebp - 0x10dc]
push eax
lea ecx, [ebp - 0x10c4]
call fcn.00429c50
add esp, 4
push eax
lea ecx, [edi + 0x74]
mov byte [ebp - 4], 4
call fcn.00429f80
push eax
add eax, 0x10
lea ecx, [edi + 0x74]
push eax
push 0
lea eax, [ebp - 0x1190]
push eax
call fcn.00429cc0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x10ac], 0x10
jb 0x4226f0
push dword [ebp - 0x10c0]
call fcn.00470aa0
add esp, 4
lea ecx, [ecx]
lea edx, [ebp - 0x1060]
lea ecx, [ebp - 0x10c0]
call fcn.00423710
lea ecx, [edi + 0x5c]
mov byte [ebp - 4], 5
cmp ecx, eax
je 0x422716
push 0xffffffffffffffff
push 0
push eax
call fcn.00420f90
mov byte [ebp - 4], 3
cmp dword [ebp - 0x10ac], 0x10
jb 0x422731
push dword [ebp - 0x10c0]
call fcn.00470aa0
add esp, 4
push ecx
lea eax, [ebp - 0x1078]
push eax
lea ecx, [edi + 0x24]
call fcn.00428480
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 0x42278b
push 0x67c9ac
lea eax, [ebp - 0x1188]
mov dword [ebp - 0x1188], 3
push eax
call fcn.005b8783
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x1154], ebx
mov byte [ebp - 0x114e], bl
jmp 0x4227a0
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 0x4227df
push 0x67c9ac
lea eax, [ebp - 0x117c]
mov dword [ebp - 0x117c], 0xa
push eax
call fcn.005b8783
test esi, esi
je 0x422fec
cmp byte [ebp - 0x114e], 0
lea eax, [ebp - 0x1018]
push esi
push eax
jne 0x422fc7
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.00423330
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42285c
push 0x67c9ac
lea eax, [ebp - 0x1174]
mov dword [ebp - 0x1174], 0xd
push eax
call fcn.005b8783
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.00429b90
mov dword [ebp - 0x10e4], eax
lea eax, [ebp - 0x1030]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x1134]
call fcn.00428d60
mov edi, dword [ebp - 0x115c]
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x1130]
mov dword [edi + 4], eax
cmp eax, 0x190
jne 0x422963
push 0x67c9ac
lea eax, [ebp - 0x1178]
mov dword [ebp - 0x1178], 5
push eax
call fcn.005b8783
cmp eax, 0x12c
jle 0x422d06
cmp eax, 0x190
jge 0x422d06
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.004282b0
mov edx, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x1090]
call fcn.00424460
cmp dword [ebp - 0x10ac], 0x10
jb 0x4229eb
push dword [ebp - 0x10c0]
call fcn.00470aa0
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 0x422a21
push dword [ebp - 0x10a8]
call fcn.00470aa0
add esp, 4
push 7
push 0
push 0x65dcb8
lea ecx, [ebp - 0x1090]
mov dword [ebp - 0x1094], 0xf
mov dword [ebp - 0x1098], 0
mov byte [ebp - 0x10a8], 0
call fcn.004239d0
test eax, eax
je 0x422b68
push 8
push 0
push 0x65dcc8
lea ecx, [ebp - 0x1090]
call fcn.004239d0
test eax, eax
je 0x422b68
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1090]
push eax
lea ecx, [ebp - 0x1060]
call fcn.00423cd0
cmp dword [ebp - 0x107c], 8
jb 0x422aa1
push dword [ebp - 0x1090]
call fcn.00470aa0
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.00428210
cmp dword [ebp - 0x101c], 0x10
jb 0x422ae0
push dword [ebp - 0x1030]
call fcn.00470aa0
add esp, 4
cmp dword [ebp - 0x1034], 0x10
mov dword [ebp - 0x101c], 0xf
mov dword [ebp - 0x1020], 0
mov byte [ebp - 0x1030], 0
jb 0x422b12
push dword [ebp - 0x1048]
call fcn.00470aa0
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 0x422b48
push dword [ebp - 0x1078]
call fcn.00470aa0
add esp, 4
mov dword [ebp - 0x1064], 0xf
mov dword [ebp - 0x1068], 0
mov byte [ebp - 0x1078], 0
jmp 0x4226f0
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x422b7e
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 0x422bc2
push dword [ebp - 0x1090]
call fcn.00470aa0
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.00428210
cmp dword [ebp - 0x101c], 0x10
jb 0x422c01
push dword [ebp - 0x1030]
call fcn.00470aa0
add esp, 4
cmp dword [ebp - 0x1034], 0x10
mov dword [ebp - 0x101c], 0xf
mov dword [ebp - 0x1020], 0
mov byte [ebp - 0x1030], 0
jb 0x422c33
push dword [ebp - 0x1048]
call fcn.00470aa0
add esp, 4
cmp dword [ebp - 0x1064], 0x10
mov dword [ebp - 0x1034], 0xf
mov dword [ebp - 0x1038], 0
mov byte [ebp - 0x1048], 0
jb 0x422c65
push dword [ebp - 0x1078]
call fcn.00470aa0
add esp, 4
cmp dword [ebp - 0x10c8], 0x10
mov dword [ebp - 0x1064], 0xf
mov dword [ebp - 0x1068], 0
mov byte [ebp - 0x1078], 0
jb 0x422c97
push dword [ebp - 0x10dc]
call fcn.00470aa0
add esp, 4
cmp dword [ebp - 0x104c], 8
mov dword [ebp - 0x10c8], 0xf
mov dword [ebp - 0x10cc], 0
mov byte [ebp - 0x10dc], 0
jb 0x422cc9
push dword [ebp - 0x1060]
call fcn.00470aa0
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 0x42310e
push dword [ebp - 0x114c]
call fcn.00470aa0
add esp, 4
jmp 0x42310e
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.004282b0
cmp dword [eax + 0x14], 0x10
jb 0x422d58
mov eax, dword [eax]
push eax
call fcn.005bad7a
add esp, 4
mov edi, eax
cmp dword [ebp - 0x10ac], 0x10
jb 0x422d7a
push dword [ebp - 0x10c0]
call fcn.00470aa0
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 0x422db0
push dword [ebp - 0x10a8]
call fcn.00470aa0
add esp, 4
mov eax, dword [ebp - 0x1160]
mov dword [eax], edi
lea eax, [edi - 1]
cmp eax, 0x7fffff
ja 0x422fac
push edi
call fcn.005ba418
sub esi, ebx
add esp, 4
sub esi, 4
mov ecx, eax
mov dword [ebp - 0x1158], ecx
test esi, esi
jle 0x422e06
lea eax, [ebp - 0x1014]
add eax, ebx
mov ebx, dword [ebp - 0x1154]
push esi
push eax
lea eax, [ebx + ecx]
push eax
call fcn.005b8be0
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x1154], ebx
jmp 0x422e0c
mov ebx, dword [ebp - 0x1154]
cmp edi, ebx
jne 0x422e6f
lea ecx, [ebp - 0x1134]
mov bl, 1
call fcn.00428210
cmp dword [ebp - 0x101c], 0x10
jb 0x422e34
push dword [ebp - 0x1030]
call fcn.00470aa0
add esp, 4
cmp dword [ebp - 0x1034], 0x10
mov dword [ebp - 0x101c], 0xf
mov dword [ebp - 0x1020], 0
mov byte [ebp - 0x1030], 0
jb 0x422ff2
push dword [ebp - 0x1048]
call fcn.00470aa0
add esp, 4
jmp 0x422ff2
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.00429510
push dword [ebp - 0x10e4]
call fcn.00470aa0
add esp, 4
cmp dword [ebp - 0x10e8], 0x10
jb 0x422ec0
push dword [ebp - 0x10fc]
call fcn.00470aa0
add esp, 4
cmp dword [ebp - 0x1100], 0x10
mov dword [ebp - 0x10e8], 0xf
mov dword [ebp - 0x10ec], 0
mov byte [ebp - 0x10fc], 0
jb 0x422ef2
push dword [ebp - 0x1114]
call fcn.00470aa0
add esp, 4
cmp dword [ebp - 0x1118], 0x10
mov dword [ebp - 0x1100], 0xf
mov dword [ebp - 0x1104], 0
mov byte [ebp - 0x1114], 0
jb 0x422f24
push dword [ebp - 0x112c]
call fcn.00470aa0
add esp, 4
cmp dword [ebp - 0x101c], 0x10
mov dword [ebp - 0x1118], 0xf
mov dword [ebp - 0x111c], 0
mov byte [ebp - 0x112c], 0
jb 0x422f56
push dword [ebp - 0x1030]
call fcn.00470aa0
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 0x422f8c
push dword [ebp - 0x1048]
call fcn.00470aa0
add esp, 4
mov dword [ebp - 0x1034], 0xf
mov dword [ebp - 0x1038], 0
mov byte [ebp - 0x1048], 0
jmp 0x4227a0
push 0x67c9ac
lea eax, [ebp - 0x1180]
mov dword [ebp - 0x1180], 0xc
push eax
call fcn.005b8783
mov eax, dword [ebp - 0x1158]
add eax, ebx
push eax
call fcn.005b8be0
add ebx, esi
add esp, 0xc
mov dword [ebp - 0x1154], ebx
cmp ebx, edi
jl 0x4227a0
mov bl, 1
jmp 0x422ff2
mov bl, byte [ebp - 0x114d]
cmp dword [ebp - 0x1064], 0x10
jb 0x423009
push dword [ebp - 0x1078]
call fcn.00470aa0
add esp, 4
cmp dword [ebp - 0x10c8], 0x10
mov dword [ebp - 0x1064], 0xf
mov dword [ebp - 0x1068], 0
mov byte [ebp - 0x1078], 0
jb 0x42303b
push dword [ebp - 0x10dc]
call fcn.00470aa0
add esp, 4
cmp dword [ebp - 0x104c], 8
mov dword [ebp - 0x10c8], 0xf
mov dword [ebp - 0x10cc], 0
mov byte [ebp - 0x10dc], 0
jb 0x42306d
push dword [ebp - 0x1060]
call fcn.00470aa0
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 0x4230a1
push dword [ebp - 0x114c]
call fcn.00470aa0
add esp, 4
mov ecx, dword [ebp - 0x1168]
jmp 0x423102
test bl, bl
je 0x42310e
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.005b8774
mov esp, ebp
pop ebp
ret 0xc