Function at 0x401d40
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0ddc
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4ff0f4]
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
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x50], ebx
push eax
call fcn.00417760
mov dword [ebp - 4], ebx
mov eax, 1
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x34]
call fcn.00404dc0
mov byte [ebp - 4], 2
mov dword [ebp - 0x60], ebx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jae 0x401ecd
lea eax, [eax + ebx*4]
push eax
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x34]
call fcn.00405190
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
mov esi, dword [ebp - 0x34]
add esi, 0xfffffff0
cmp eax, esi
je 0x401e2c
lea edi, [esi + 0xc]
cmp dword [edi], 0
jl 0x401e1f
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x401e1f
push eax
call fcn.00408b60
add esp, 4
mov dword [ebp - 0x44], eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x401e14
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x10
mov dword [ebp - 0x34], ecx
jmp 0x401e2c
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.00408ad0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00404f30
mov esi, dword [ebp - 0x48]
mov edx, dword [esi + 0x10]
sub edx, dword [esi + 0xc]
sar edx, 2
dec edx
cmp ebx, edx
jae 0x401ec7
push 0x4eac44
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x34]
call fcn.00405240
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
mov esi, dword [ebp - 0x34]
add esi, 0xfffffff0
cmp eax, esi
je 0x401eb8
lea edi, [esi + 0xc]
cmp dword [edi], 0
jl 0x401eab
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x401eab
push eax
call fcn.00408b60
add esp, 4
mov dword [ebp - 0x44], eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x401ea0
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x10
mov dword [ebp - 0x34], ecx
jmp 0x401eb8
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.00408ad0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.00404f30
mov esi, dword [ebp - 0x48]
inc ebx
jmp 0x401da8
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x44]
push eax
call fcn.00413740
add esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
mov esi, dword [ebp - 0x34]
add esi, 0xfffffff0
cmp eax, esi
je 0x401f34
lea edi, [esi + 0xc]
cmp dword [edi], 0
jl 0x401f27
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x401f27
push eax
call fcn.00408b60
add esp, 4
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x401f1f
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
mov eax, dword [edx + 4]
call eax
add ebx, 0x10
mov dword [ebp - 0x34], ebx
jmp 0x401f34
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.00408ad0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00404f30
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx - 0xc]
lea edi, [eax + 4]
lea edx, [ebp - 0x44]
push edx
call fcn.00449750
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x34]
mov edx, dword [eax - 0xc]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x38], 0xffffffff
lea edi, [ebp - 0x38]
call fcn.00455500
mov eax, dword [ebp - 0x38]
not eax
mov dword [ebp - 0x38], eax
mov edi, dword [ebp - 0x44]
mov ecx, dword [edi]
mov dword [ecx], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov edx, dword [edi]
add edx, 4
push edx
call fcn.004acac0
add esp, 0xc
lea ecx, [ebp - 0x54]
call fcn.00404dc0
mov byte [ebp - 4], 7
lea esi, [ebp - 0x70]
call fcn.00406580
push 0
push 0
push 0
push 1
push 0x4eac48
mov eax, dword [eax + 8]
call eax
mov ebx, eax
mov dword [ebp - 0x64], ebx
test ebx, ebx
je 0x4021da
lea esi, [ebp - 0x70]
call fcn.00406670
push 0
push 0
push 3
push 0
push 0
push 0x53
mov ecx, dword [ebp - 0x3c]
push ecx
push ebx
mov edx, dword [eax + 8]
call edx
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x4021cc
push 0x14
lea ecx, [ebp - 0x38]
call fcn.004407c0
mov byte [ebp - 4], 8
mov ebx, dword [eax]
lea esi, [ebp - 0x70]
call fcn.00406760
push 0
push 0x8400f200
push 0
push 0
push 0
mov ecx, dword [ebp - 0x40]
push ecx
push ebx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [eax + 8]
call eax
mov ebx, eax
mov dword [ebp - 0x48], ebx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x38]
call fcn.00404f30
test ebx, ebx
je 0x4021b8
push 0x13
lea ecx, [ebp - 0x40]
call fcn.004407c0
mov byte [ebp - 4], 9
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.004489e0
add esp, 8
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x40]
call fcn.00404f30
mov eax, dword [ebp - 0x38]
mov edx, dword [eax - 0xc]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], eax
lea esi, [ebp - 0x70]
call fcn.00406850
push 0xa0000000
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
push ebx
mov eax, dword [eax + 8]
call eax
mov ecx, dword [edi + 4]
mov dword [ebp - 0x40], ecx
mov edi, dword [edi]
lea esi, [ebp - 0x70]
call fcn.00406940
mov edx, dword [ebp - 0x40]
push edx
push edi
push 0xffffffffffffffff
push 0
push ebx
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x40219e
push 0x13
lea ecx, [ebp - 0x48]
call fcn.00412000
add esp, 4
cmp eax, 0xc8
jne 0x40219b
push 5
lea ecx, [ebp - 0x48]
call fcn.00412000
add esp, 4
mov dword [ebp - 0x40], eax
test eax, eax
jle 0x40219b
xor edi, edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x3c], 0x1000
push edi
push 0x1000
lea ecx, [ebp - 0x30]
call fcn.004059a0
mov byte [ebp - 4], 0xc
mov ebx, dword [ebp - 0x48]
jmp 0x402110
or dword [ebp - 0x50], 2
lea esi, [ebp - 0x70]
call fcn.00406a30
lea esi, [eax + 8]
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
push 0
lea ecx, [ebp - 0x30]
call fcn.00405a00
push eax
push ebx
mov eax, dword [esi]
call eax
test eax, eax
je 0x402145
cmp dword [ebp - 0x3c], 0
je 0x402145
mov al, 1
jmp 0x402147
xor al, al
test byte [ebp - 0x50], 2
je 0x402151
and dword [ebp - 0x50], 0xfffffffd
test al, al
je 0x40217b
push 0
lea ecx, [ebp - 0x30]
call fcn.00405a00
push eax
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x3c]
call fcn.00405360
add edi, dword [ebp - 0x3c]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x3c], 0x1000
jmp 0x402110
cmp edi, dword [ebp - 0x40]
je 0x40218d
push 0x4e3f2e
lea ecx, [ebp - 0x54]
call fcn.00404f90
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x30]
call fcn.004059d0
jmp 0x40219e
mov ebx, dword [ebp - 0x48]
lea esi, [ebp - 0x70]
call fcn.00406b20
push ebx
mov edx, dword [eax + 8]
call edx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x38]
call fcn.00404f30
lea esi, [ebp - 0x70]
call fcn.00406b20
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [eax + 8]
call edx
mov ebx, dword [ebp - 0x64]
lea esi, [ebp - 0x70]
call fcn.00406b20
push ebx
mov eax, dword [eax + 8]
call eax
mov ecx, dword [ebp - 0x54]
cmp dword [ecx - 0xc], 0
je 0x402234
push 0x4eac4c
lea ecx, [ebp - 0x4c]
call fcn.00404e80
mov bl, 0xd
mov byte [ebp - 4], bl
lea edx, [ebp - 0x4c]
push edx
push 0x4eac50
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x7c]
push ecx
call fcn.00449500
add esp, 0x10
mov byte [ebp - 4], 0xe
push eax
mov edx, dword [ebp - 0x58]
push edx
call fcn.004063e0
mov byte [ebp - 4], bl
lea eax, [ebp - 0x7c]
push eax
call fcn.00406360
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4c]
call fcn.00404f30
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x54]
call fcn.00404f30
mov byte [ebp - 4], 2
lea edi, [ebp - 0x44]
call fcn.00405ad0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00404f30
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x58]
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.004a9c1c
mov esp, ebp
pop ebp
ret