Function at 0x496034
Capabilities:
Check http status code
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x117
push 0
push 0
dec ecx
jne 0x49603d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
call fcn.00405b60
xor eax, eax
push ebp
push 0x4969d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
add eax, 4
call fcn.004054e4
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x10], 0xffffffff
lea eax, [ebp - 0xc]
call fcn.004054e4
mov word [ebp - 0xe], 0x50
lea eax, [ebp - 4]
call fcn.004054e4
lea eax, [ebp - 0x14]
call fcn.004054e4
mov dl, 1
mov eax, dword [0x495170]
call fcn.004042e8
mov dword [ebp - 0x64], eax
xor eax, eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x3c]
call fcn.004054e4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
call fcn.00495614
push ebp
mov eax, dword [ebp - 0x2c]
call fcn.0049594c
pop ecx
test al, al
je 0x496994
push ebp
call fcn.00495bd4
pop ecx
push 0
push 0x800
lea eax, [ebp - 0x8a9]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jle 0x49694f
mov eax, dword [ebp - 0x50]
mov byte [ebp + eax - 0x8a9], 0
lea edx, [ebp - 0x8a9]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp - 0x50]
call fcn.00495578
cmp dword [ebp - 0x24], 1
jg 0x4966be
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 4]
call fcn.0049532c
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jle 0x4966be
lea eax, [ebp - 0x8b0]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp - 0x24]
xor edx, edx
call fcn.004956f0
mov edx, dword [ebp - 0x8b0]
mov eax, dword [ebp - 0x20]
add eax, 4
call fcn.00405538
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
call fcn.00495264
mov ebx, 1
jmp 0x496193
inc ebx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
call fcn.00405848
cmp ebx, eax
jge 0x4961b8
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
movzx eax, byte [eax + ebx - 1]
sub al, 9
je 0x4961b8
sub al, 0x17
jne 0x496192
jmp 0x4961b8
inc ebx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
movzx eax, byte [eax + ebx - 1]
sub al, 9
je 0x4961b7
sub al, 0x17
je 0x4961b7
jmp 0x4961ef
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
add eax, eax
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 4]
movzx edx, byte [edx + ebx - 1]
add eax, edx
sub eax, 0x30
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x14], eax
inc ebx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
movzx eax, byte [eax + ebx - 1]
add al, 0xd0
sub al, 0xa
jb 0x4961cd
jmp 0x496203
inc ebx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
movzx eax, byte [eax + ebx - 1]
sub al, 0xa
je 0x496242
sub al, 3
jne 0x496202
jmp 0x496242
lea eax, [ebp - 0x8b4]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 4]
movzx edx, byte [edx + ebx - 1]
mov ecx, 0
call fcn.00405788
mov edx, dword [ebp - 0x8b4]
lea eax, [ebp - 0x3c]
call fcn.0040587c
inc ebx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
movzx eax, byte [eax + ebx - 1]
sub al, 0xa
je 0x496218
sub al, 3
je 0x496218
mov byte [ebp - 0x25], 0
lea eax, [ebp - 0x40]
mov ecx, 0x4969f4
mov edx, dword [ebp - 0x3c]
call fcn.004058f8
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x40]
call fcn.00405cbc
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jle 0x4962da
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x4962a5
mov eax, dword [ebp - 0x6c]
sub eax, 0xa
cmp word [eax], 1
je 0x4962a5
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, dword [ebp - 0x40]
call fcn.004056e4
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x4962bc
mov eax, dword [ebp - 0x70]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
add dword [ebp - 0x68], eax
jmp 0x4962c7
inc dword [ebp - 0x68]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x68]
movzx eax, byte [eax + edx - 1]
sub al, 9
je 0x4962c4
sub al, 0x17
je 0x4962c4
mov ebx, dword [ebp - 0x68]
test ebx, ebx
jle 0x49634c
lea eax, [ebp - 0x38]
call fcn.004054e4
jmp 0x496312
lea eax, [ebp - 0x8b8]
mov edx, dword [ebp - 0x34]
movzx edx, byte [edx + ebx - 1]
mov ecx, 0
call fcn.00405788
mov edx, dword [ebp - 0x8b8]
lea eax, [ebp - 0x38]
call fcn.0040587c
inc ebx
lea eax, [ebp - 0x34]
xor edx, edx
call fcn.004056f4
call fcn.00405848
cmp ebx, eax
jge 0x49633b
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax + ebx - 1]
add al, 0xf7
sub al, 2
jb 0x49633b
sub al, 2
je 0x49633b
sub al, 0x13
jne 0x4962eb
mov eax, dword [ebp - 0x38]
mov edx, 0x496a14
call fcn.00405b58
sete byte [ebp - 0x25]
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], 0x12c
jl 0x49648f
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], 0x190
jge 0x49648f
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
cmp eax, dword [ebp - 0x54]
jle 0x49694f
lea eax, [ebp - 0x44]
mov ecx, 0x496a28
mov edx, dword [ebp - 0x3c]
call fcn.004058f8
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x44]
call fcn.00405cbc
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jle 0x4963fc
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x4963c7
mov eax, dword [ebp - 0x78]
sub eax, 0xa
cmp word [eax], 1
je 0x4963c7
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, dword [ebp - 0x44]
call fcn.004056e4
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x4963de
mov eax, dword [ebp - 0x7c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
add dword [ebp - 0x74], eax
jmp 0x4963e9
inc dword [ebp - 0x74]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x74]
movzx eax, byte [eax + edx - 1]
sub al, 9
je 0x4963e6
sub al, 0x17
je 0x4963e6
mov ebx, dword [ebp - 0x74]
test ebx, ebx
jle 0x49648f
lea eax, [ebp - 0x30]
call fcn.004054e4
jmp 0x49643b
lea eax, [ebp - 0x8bc]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 4]
movzx edx, byte [edx + ebx - 1]
mov ecx, 0
call fcn.00405788
mov edx, dword [ebp - 0x8bc]
lea eax, [ebp - 0x30]
call fcn.0040587c
inc ebx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
call fcn.00405848
cmp ebx, eax
jge 0x49645d
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
movzx eax, byte [eax + ebx - 1]
sub al, 0xa
je 0x49645d
sub al, 3
jne 0x496411
push ebp
mov eax, dword [ebp - 0x30]
call fcn.0049594c
pop ecx
test al, al
je 0x49694f
mov eax, dword [ebp - 0x1c]
push eax
call sub.wsock32.dll_closesocket
push ebp
call fcn.00495bd4
pop ecx
test al, al
je 0x49694f
inc dword [ebp - 0x54]
jmp 0x4960e4
mov eax, dword [ebp - 0x20]
add eax, 0xc
call fcn.004054e4
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], 0xc8
jl 0x4965a2
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], 0x12c
jge 0x4965a2
lea eax, [ebp - 0x48]
mov ecx, 0x496a40
mov edx, dword [ebp - 0x3c]
call fcn.004058f8
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x48]
call fcn.00405cbc
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jle 0x496559
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
je 0x496512
mov eax, dword [ebp - 0x84]
sub eax, 0xa
cmp word [eax], 1
je 0x496512
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, dword [ebp - 0x48]
call fcn.004056e4
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x496538
mov eax, dword [ebp - 0x88]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
add dword [ebp - 0x80], eax
jmp 0x496546
inc dword [ebp - 0x80]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x80]
movzx eax, byte [eax + edx - 1]
sub al, 9
je 0x496543
sub al, 0x17
je 0x496543
mov ebx, dword [ebp - 0x80]
test ebx, ebx
jle 0x4965a2
jmp 0x49658f
lea eax, [ebp - 0x8c0]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 4]
movzx edx, byte [edx + ebx - 1]
mov ecx, 0
call fcn.00405788
mov edx, dword [ebp - 0x8c0]
mov eax, dword [ebp - 0x20]
add eax, 0xc
call fcn.0040587c
inc ebx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
movzx eax, byte [eax + ebx - 1]
sub al, 0xa
je 0x4965a2
sub al, 3
jne 0x496562
cmp byte [ebp - 0x25], 0
jne 0x4966ae
lea eax, [ebp - 0x4c]
mov ecx, 0x496a5c
mov edx, dword [ebp - 0x3c]
call fcn.004058f8
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x4c]
call fcn.00405cbc
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jle 0x49665e
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x49660e
mov eax, dword [ebp - 0x90]
sub eax, 0xa
cmp word [eax], 1
je 0x49660e
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, dword [ebp - 0x4c]
call fcn.004056e4
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x496634
mov eax, dword [ebp - 0x94]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
add dword [ebp - 0x8c], eax
jmp 0x496648
inc dword [ebp - 0x8c]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x8c]
movzx eax, byte [eax + edx - 1]
sub al, 9
je 0x496642
sub al, 0x17
je 0x496642
mov ebx, dword [ebp - 0x8c]
test ebx, ebx
jle 0x4966ae
jmp 0x49669d
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x10], 0xffffffff
jne 0x49667b
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
add eax, eax
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 4]
movzx edx, byte [edx + ebx - 1]
add eax, edx
sub eax, 0x30
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x10], eax
inc ebx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
movzx eax, byte [eax + ebx - 1]
add al, 0xd0
sub al, 0xa
jb 0x49666a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0x24]
call fcn.00495818
cmp byte [ebp - 0x25], 0
je 0x496916
mov byte [ebp - 0x5d], 0
jmp 0x4968fe
xor ebx, ebx
xor esi, esi
jmp 0x496750
shl esi, 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
movzx eax, byte [eax + ebx]
add al, 0xd0
sub al, 0xa
jae 0x4966ff
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
movzx eax, byte [eax + ebx]
add esi, eax
sub esi, 0x30
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
movzx eax, byte [eax + ebx]
add al, 0x9f
sub al, 6
jae 0x496727
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
movzx eax, byte [eax + ebx]
add esi, eax
sub esi, 0x61
add esi, 0xa
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
movzx eax, byte [eax + ebx]
add al, 0xbf
sub al, 6
jae 0x49674f
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
movzx eax, byte [eax + ebx]
add esi, eax
sub esi, 0x41
add esi, 0xa
inc ebx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
cmp ebx, dword [eax + 0x10]
jge 0x496786
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
movzx eax, byte [eax + ebx]
add al, 0xd0
sub al, 0xa
jb 0x4966d7
add al, 0xf9
sub al, 6
jb 0x4966d7
add al, 0xe6
sub al, 6
jb 0x4966d7
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
cmp ebx, dword [eax + 0x10]
je 0x49690e
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x4967c9
mov eax, dword [ebp - 0x98]
sub eax, 0xa
cmp word [eax], 1
je 0x4967c9
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, dword [ebp - 0x3c]
call fcn.004056e4
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
movzx eax, byte [eax + ebx]
mov edx, dword [ebp - 0x98]
cmp al, byte [edx]
jne 0x4968f8
test esi, esi
jle 0x4968f2
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x496820
mov eax, dword [ebp - 0x9c]
sub eax, 0xa
cmp word [eax], 1
je 0x496820
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, dword [ebp - 0x3c]
call fcn.004056e4
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
je 0x496846
mov eax, dword [ebp - 0xa0]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xa0], eax
add ebx, dword [ebp - 0xa0]
mov dword [ebp - 0x58], ebx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
je 0x496883
mov eax, dword [ebp - 0xa4]
sub eax, 0xa
cmp word [eax], 1
je 0x496883
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, dword [ebp - 0x3c]
call fcn.004056e4
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
je 0x4968a9
mov eax, dword [ebp - 0xa8]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x58]
add eax, esi
add eax, dword [ebp - 0xa8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 0x10]
cmp eax, dword [ebp - 0x5c]
jl 0x49690e
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x58]
lea edx, [eax + edx]
mov ecx, esi
mov eax, dword [ebp - 0x64]
call fcn.00495578
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
mov cx, 1
mov edx, dword [ebp - 0x5c]
call fcn.00495818
jmp 0x4968fe
mov byte [ebp - 0x5d], 1
jmp 0x49690e
mov byte [ebp - 0x5d], 1
jmp 0x49690e
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
cmp dword [eax + 0x10], 4
jge 0x4966d1
cmp byte [ebp - 0x5d], 0
jne 0x49694f
jmp 0x496930
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x10], 0
jl 0x496930
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 0x1c]
cmp eax, dword [edx + 0x10]
jle 0x49694f
mov eax, dword [ebp - 0x20]
cmp word [eax + 0x22], 0
je 0x4960e4
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebx + 0x24]
call dword [ebx + 0x20]
jmp 0x4960e4
mov eax, dword [ebp - 0x1c]
push eax
call sub.wsock32.dll_closesocket
cmp dword [ebp - 0x24], 1
jl 0x496981
cmp byte [ebp - 0x25], 0
je 0x496974
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x64]
call fcn.00495644
jmp 0x49698c
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
call fcn.0049568c
jmp 0x49698c
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
call fcn.00495614
mov eax, dword [ebp - 0x64]
call fcn.00404318
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4969de
lea eax, [ebp - 0x8c0]
mov edx, 5
call fcn.00405508
lea eax, [ebp - 0x4c]
mov edx, 9
call fcn.00405508
lea eax, [ebp - 0x14]
call fcn.004054e4
lea eax, [ebp - 0xc]
call fcn.004054e4
lea eax, [ebp - 4]
call fcn.004054e4
ret