Function at 0x49a330
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62e130
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x117c
call fcn.005eb280
mov eax, dword [0x6bae70]
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 - 0x1149], al
mov byte [ebp - 0x1151], al
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x117c], edi
mov dword [ebp - 0x1158], 0
mov dword [ebp - 0x10dc], 7
mov dword [ebp - 0x10e0], 0
mov word [ebp - 0x10f0], ax
mov dword [ebp - 0x104c], 7
mov dword [ebp - 0x1050], eax
mov word [ebp - 0x1060], ax
lea eax, [ebp - 0x1150]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1060]
mov dword [ebp - 0x1150], 0x50
push eax
lea edx, [ebp - 0x10f0]
call fcn.0049b140
mov esi, dword [ebp - 0x1150]
mov eax, 0x1bb
add esp, 8
cmp si, ax
jne 0x49a474
cmp dword [ebp - 0x104c], 8
jb 0x49a439
push dword [ebp - 0x1060]
call fcn.005e8fa6
add esp, 4
xor eax, eax
mov dword [ebp - 0x104c], 7
cmp dword [ebp - 0x10dc], 8
mov dword [ebp - 0x1050], 0
mov word [ebp - 0x1060], ax
jb 0x49a46d
push dword [ebp - 0x10f0]
call fcn.005e8fa6
add esp, 4
xor al, al
jmp 0x49ade4
lea edx, [ebp - 0x10f0]
lea ecx, [ebp - 0x10d8]
call fcn.0049af30
push esi
lea eax, [ebp - 0x10d8]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.004995b0
test al, al
jne 0x49a4b7
push 0x6aec40
lea eax, [ebp - 0x1178]
mov dword [ebp - 0x1178], 1
push eax
call fcn.005e9743
lea eax, [ebp - 0x10d8]
push eax
lea ecx, [edi + 0x24]
call fcn.0049e220
jmp 0x49a4d0
lea edx, [ebp - 0x1060]
lea ecx, [ebp - 0x1090]
call fcn.0049af30
lea ecx, [edi + 0x5c]
mov byte [ebp - 4], 4
cmp ecx, eax
je 0x49a4f6
push 0xffffffffffffffff
push 0
push eax
call fcn.00422880
mov byte [ebp - 4], 3
cmp dword [ebp - 0x107c], 0x10
jb 0x49a511
push dword [ebp - 0x1090]
call fcn.005e8fa6
add esp, 4
push ecx
lea eax, [ebp - 0x1078]
push eax
lea ecx, [edi + 0x24]
call fcn.0049e2b0
mov byte [ebp - 4], 5
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 0x49a56b
push 0x6aec40
lea eax, [ebp - 0x1180]
mov dword [ebp - 0x1180], 3
push eax
call fcn.005e9743
xor edi, edi
xor bl, bl
mov dword [ebp - 0x1150], edi
jmp 0x49a580
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 0x49a5bf
push 0x6aec40
lea eax, [ebp - 0x1188]
mov dword [ebp - 0x1188], 0xa
push eax
call fcn.005e9743
test esi, esi
je 0x49abfc
lea eax, [ebp - 0x1018]
push esi
push eax
test bl, bl
jne 0x49ad4b
lea ecx, [ebp - 0x1048]
mov dword [ebp - 0x1034], 0xf
mov dword [ebp - 0x1038], 0
mov byte [ebp - 0x1048], bl
call fcn.00422c80
push 4
push 0
push str._r_n_r_n
lea ecx, [ebp - 0x1048]
mov byte [ebp - 4], 6
call fcn.00445090
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x49a636
push 0x6aec40
lea eax, [ebp - 0x1184]
mov dword [ebp - 0x1184], 0xd
push eax
call fcn.005e9743
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.00422c80
mov dword [ebp - method.CHttpHeader.virtual_0], vtable.CHttpHeader.0
mov dword [ebp - 0x1144], 0
mov dword [ebp - 0x112c], 0xf
mov dword [ebp - 0x1130], 0
mov byte [ebp - 0x1140], 0
mov dword [ebp - 0x1114], 0xf
mov dword [ebp - 0x1118], 0
mov byte [ebp - 0x1128], 0
mov dword [ebp - 0x10fc], 0xf
mov dword [ebp - 0x1100], 0
mov byte [ebp - 0x1110], 0
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x10f8], 0
mov dword [ebp - 0x10f4], 0
call fcn.0044a1f0
mov dword [ebp - 0x10f8], eax
lea eax, [ebp - 0x1030]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x1148]
call fcn.0049eda0
mov edi, dword [ebp - 0x115c]
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x1144]
mov dword [edi + 4], eax
cmp eax, 0x190
jne 0x49a737
push 0x6aec40
lea eax, [ebp - 0x1174]
mov dword [ebp - 0x1174], 5
push eax
call fcn.005e9743
cmp eax, 0x12c
jle 0x49aa92
cmp eax, 0x190
jge 0x49aa92
push str.Location
lea ecx, [ebp - 0x10a8]
call fcn.00422d80
lea eax, [ebp - 0x10a8]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x1090]
push eax
lea ecx, [ebp - 0x1148]
call fcn.0049e090
mov edx, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x10c0]
call fcn.0049b4c0
cmp dword [ebp - 0x107c], 0x10
jb 0x49a7a2
push dword [ebp - 0x1090]
call fcn.005e8fa6
add esp, 4
mov dword [ebp - 0x107c], 0xf
mov dword [ebp - 0x1080], 0
mov byte [ebp - 0x1090], 0
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x1094], 0x10
jb 0x49a7d8
push dword [ebp - 0x10a8]
call fcn.005e8fa6
add esp, 4
push 7
push 0
push 0x68fc2c
lea ecx, [ebp - 0x10c0]
mov dword [ebp - 0x1094], 0xf
mov dword [ebp - 0x1098], 0
mov byte [ebp - 0x10a8], 0
call fcn.00423940
test eax, eax
je 0x49a8f6
push 8
push 0
push 0x68fc3c
lea ecx, [ebp - 0x10c0]
call fcn.00423940
test eax, eax
je 0x49a8f6
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x10c0]
push eax
lea ecx, [ebp - 0x1060]
call fcn.004220f0
lea ecx, [ebp - 0x10c0]
call fcn.00422660
lea ecx, [ebp - 0x1148]
call fcn.0049dff0
cmp dword [ebp - 0x101c], 0x10
jb 0x49a86e
push dword [ebp - 0x1030]
call fcn.005e8fa6
add esp, 4
cmp dword [ebp - 0x1034], 0x10
mov dword [ebp - 0x101c], 0xf
mov dword [ebp - 0x1020], 0
mov byte [ebp - 0x1030], 0
jb 0x49a8a0
push dword [ebp - 0x1048]
call fcn.005e8fa6
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 0x49a8d6
push dword [ebp - 0x1078]
call fcn.005e8fa6
add esp, 4
mov dword [ebp - 0x1064], 0xf
mov dword [ebp - 0x1068], 0
mov byte [ebp - 0x1078], 0
jmp 0x49a4d0
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x49a90c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 8], 0xffffffff
push dword [ebp - 0x1160]
cmp dword [ebp - 0x10ac], 8
lea edx, [ebp - 0x10c0]
mov eax, dword [edi]
mov ecx, dword [ebp - 0x1168]
cmovae edx, dword [ebp - 0x10c0]
push ecx
mov eax, dword [eax + 8]
mov ecx, edi
push edx
call eax
cmp dword [ebp - 0x10ac], 8
mov bl, al
jb 0x49a950
push dword [ebp - 0x10c0]
call fcn.005e8fa6
add esp, 4
xor eax, eax
mov dword [ebp - 0x10ac], 7
lea ecx, [ebp - 0x1148]
mov dword [ebp - 0x10b0], 0
mov word [ebp - 0x10c0], ax
call fcn.0049dff0
cmp dword [ebp - 0x101c], 0x10
jb 0x49a98f
push dword [ebp - 0x1030]
call fcn.005e8fa6
add esp, 4
cmp dword [ebp - 0x1034], 0x10
mov dword [ebp - 0x101c], 0xf
mov dword [ebp - 0x1020], 0
mov byte [ebp - 0x1030], 0
jb 0x49a9c1
push dword [ebp - 0x1048]
call fcn.005e8fa6
add esp, 4
cmp dword [ebp - 0x1064], 0x10
mov dword [ebp - 0x1034], 0xf
mov dword [ebp - 0x1038], 0
mov byte [ebp - 0x1048], 0
jb 0x49a9f3
push dword [ebp - 0x1078]
call fcn.005e8fa6
add esp, 4
cmp dword [ebp - 0x10c4], 0x10
mov dword [ebp - 0x1064], 0xf
mov dword [ebp - 0x1068], 0
mov byte [ebp - 0x1078], 0
jb 0x49aa25
push dword [ebp - 0x10d8]
call fcn.005e8fa6
add esp, 4
cmp dword [ebp - 0x104c], 8
mov dword [ebp - 0x10c4], 0xf
mov dword [ebp - 0x10c8], 0
mov byte [ebp - 0x10d8], 0
jb 0x49aa57
push dword [ebp - 0x1060]
call fcn.005e8fa6
add esp, 4
xor eax, eax
mov dword [ebp - 0x104c], 7
cmp dword [ebp - 0x10dc], 8
mov dword [ebp - 0x1050], 0
mov word [ebp - 0x1060], ax
jb 0x49aa8b
push dword [ebp - 0x10f0]
call fcn.005e8fa6
add esp, 4
mov al, bl
jmp 0x49ade4
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.00422c80
lea eax, [ebp - 0x10a8]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x1090]
push eax
lea ecx, [ebp - 0x1148]
call fcn.0049e090
cmp dword [eax + 0x14], 0x10
jb 0x49aae4
mov eax, dword [eax]
push eax
call fcn.005ebcda
add esp, 4
mov edi, eax
cmp dword [ebp - 0x107c], 0x10
jb 0x49ab06
push dword [ebp - 0x1090]
call fcn.005e8fa6
add esp, 4
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x1094], 0x10
mov dword [ebp - 0x107c], 0xf
mov dword [ebp - 0x1080], 0
mov byte [ebp - 0x1090], 0
jb 0x49ab3c
push dword [ebp - 0x10a8]
call fcn.005e8fa6
add esp, 4
mov eax, dword [ebp - 0x1160]
mov dword [eax], edi
lea eax, [edi - 1]
cmp eax, 0x7fffff
ja 0x49ad30
push edi
call fcn.005eb378
sub esi, ebx
add esp, 4
sub esi, 4
mov ecx, eax
mov dword [ebp - 0x1158], ecx
test esi, esi
jle 0x49ab92
lea eax, [ebp - 0x1014]
add eax, ebx
mov ebx, dword [ebp - 0x1150]
push esi
push eax
lea eax, [ebx + ecx]
push eax
call fcn.005e9ba0
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x1150], ebx
jmp 0x49ab98
mov ebx, dword [ebp - 0x1150]
lea ecx, [ebp - 0x1148]
cmp edi, ebx
jne 0x49acbc
mov bh, 1
mov byte [ebp - 0x1149], bh
call fcn.0049dff0
cmp dword [ebp - 0x101c], 0x10
jb 0x49abca
push dword [ebp - 0x1030]
call fcn.005e8fa6
add esp, 4
cmp dword [ebp - 0x1034], 0x10
mov dword [ebp - 0x101c], 0xf
mov dword [ebp - 0x1020], 0
mov byte [ebp - 0x1030], 0
jb 0x49abfc
push dword [ebp - 0x1048]
call fcn.005e8fa6
add esp, 4
mov bh, byte [ebp - 0x1149]
cmp dword [ebp - 0x1064], 0x10
jb 0x49ac19
push dword [ebp - 0x1078]
call fcn.005e8fa6
add esp, 4
cmp dword [ebp - 0x10c4], 0x10
mov dword [ebp - 0x1064], 0xf
mov dword [ebp - 0x1068], 0
mov byte [ebp - 0x1078], 0
jb 0x49ac4b
push dword [ebp - 0x10d8]
call fcn.005e8fa6
add esp, 4
cmp dword [ebp - 0x104c], 8
mov dword [ebp - 0x10c4], 0xf
mov dword [ebp - 0x10c8], 0
mov byte [ebp - 0x10d8], 0
jb 0x49ac7d
push dword [ebp - 0x1060]
call fcn.005e8fa6
add esp, 4
xor eax, eax
mov dword [ebp - 0x104c], 7
cmp dword [ebp - 0x10dc], 8
mov dword [ebp - 0x1050], 0
mov word [ebp - 0x1060], ax
jb 0x49acb1
push dword [ebp - 0x10f0]
call fcn.005e8fa6
add esp, 4
mov ecx, dword [ebp - 0x1168]
jmp 0x49add6
mov bl, 1
call fcn.0049dff0
cmp dword [ebp - 0x101c], 0x10
jb 0x49acda
push dword [ebp - 0x1030]
call fcn.005e8fa6
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x1034], 0x10
mov dword [ebp - 0x101c], 0xf
mov dword [ebp - 0x1020], 0
mov byte [ebp - 0x1030], 0
jb 0x49ad10
push dword [ebp - 0x1048]
call fcn.005e8fa6
add esp, 4
mov dword [ebp - 0x1034], 0xf
mov dword [ebp - 0x1038], 0
mov byte [ebp - 0x1048], 0
jmp 0x49a580
push 0x6aec40
lea eax, [ebp - 0x116c]
mov dword [ebp - 0x116c], 0xc
push eax
call fcn.005e9743
mov eax, dword [ebp - 0x1150]
add eax, dword [ebp - 0x1158]
push eax
call fcn.005e9ba0
mov eax, dword [ebp - 0x1150]
add esp, 0xc
add eax, esi
mov dword [ebp - 0x1150], eax
cmp eax, edi
jl 0x49a580
mov bh, 1
jmp 0x49ac02
test bh, bh
je 0x49ade2
mov eax, dword [ebp - 0x1158]
mov dword [ecx], eax
mov al, bh
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.005e9734
mov esp, ebp
pop ebp
ret 0xc