Function at 0x40cb52
Capabilities:
Check http status code

Disassembly:
push ebp
lea ebp, [esp - 0x3de8]
mov eax, 0x3de8
call fcn.004309a0
push 0xffffffffffffffff
push 0x4367fc
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x448674]
xor eax, ebp
mov dword [ebp + 0x3de4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x3df0]
xor ebx, ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], ebx
push 0xf
mov dword [ebp - 4], ebx
pop eax
mov dword [ebp + 0x228], eax
mov dword [ebp + 0x224], ebx
mov byte [ebp + 0x214], bl
mov dword [ebp + 0x20c], eax
mov dword [ebp + 0x208], ebx
mov byte [ebp + 0x1f8], bl
mov dword [ebp + 0x244], eax
mov dword [ebp + 0x240], ebx
mov byte [ebp + 0x230], bl
mov dword [ebp + 0x1d4], eax
mov dword [ebp + 0x1d0], ebx
mov byte [ebp + 0x1c0], bl
mov dword [ebp + 0x1f0], eax
mov dword [ebp + 0x1ec], ebx
mov byte [ebp + 0x1dc], bl
mov dword [ebp + 0x1b8], eax
mov dword [ebp + 0x1b4], ebx
mov byte [ebp + 0x1a4], bl
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x3df4]
mov byte [ebp - 4], 6
mov dword [ebp - 0x14], ebx
call fcn.0040ca0e
pop ecx
mov esi, eax
lea edi, [ebp + 0x230]
mov byte [ebp - 4], 7
call fcn.004061b9
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 6
call fcn.00406220
push 8
pop esi
push esi
push str.https:__
mov eax, esi
lea edx, [ebp + 0x230]
call fcn.0040ebf2
test eax, eax
je 0x40cc7c
push 7
pop esi
push esi
push str.http:__
mov eax, esi
lea edx, [ebp + 0x230]
call fcn.0040ebf2
test eax, eax
jne 0x40cc7f
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x14]
push edi
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp + 0x230]
inc eax
push ecx
mov byte [ebp - 0x18], 0x2f
call fcn.0040eb64
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x40ccd6
push ebx
push 0x43f73a
lea ecx, [ebp + 0x16c]
mov dword [ebp + 0x180], 0xf
mov dword [ebp + 0x17c], ebx
mov byte [ebp + 0x16c], bl
call fcn.004062db
mov byte [ebp - 4], 8
lea eax, [ebp + 0x16c]
mov dword [ebp - 0x10], edi
jmp 0x40ccf9
push 0xffffffffffffffff
push eax
lea eax, [ebp + 0x230]
push eax
lea esi, [ebp + 0xfc]
call fcn.0040eb2d
mov dword [ebp - 4], 9
mov dword [ebp - 0x10], 2
mov esi, eax
lea edi, [ebp + 0x214]
call fcn.004061b9
test byte [ebp - 0x10], 2
je 0x40cd1e
and dword [ebp - 0x10], 0xfffffffd
push ebx
push 1
lea ecx, [ebp + 0xfc]
call fcn.00406220
mov dword [ebp - 4], 6
test byte [ebp - 0x10], 1
je 0x40cd3d
and dword [ebp - 0x10], 0xfffffffe
push ebx
push 1
lea ecx, [ebp + 0x16c]
call fcn.00406220
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x230]
cmp ecx, 0xffffffff
je 0x40cd5c
cmp dword [ebp + 0x244], 0x10
jae 0x40cd71
lea eax, [ebp + 0x230]
jmp 0x40cd71
cmp dword [ebp + 0x244], 0x10
jae 0x40cd6b
lea eax, [ebp + 0x230]
mov ecx, dword [ebp + 0x240]
add ecx, eax
cmp dword [ebp + 0x244], 0x10
mov eax, dword [ebp + 0x230]
jae 0x40cd88
lea eax, [ebp + 0x230]
push dword [ebp - 0x24]
add eax, dword [ebp - 0x14]
push ecx
push eax
lea eax, [ebp + 0x188]
push eax
mov dword [ebp + 0x19c], 0xf
mov dword [ebp + 0x198], ebx
mov byte [ebp + 0x188], bl
call fcn.0040ee76
lea esi, [ebp + 0x188]
lea edi, [ebp + 0x1f8]
mov byte [ebp - 4], 0xa
call fcn.004061b9
push ebx
push 1
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00406220
push ebx
push 0x441ccc
lea eax, [ebp + 0x214]
push eax
call fcn.0040eb08
cmp eax, 0xffffffff
je 0x40ce0a
push eax
push ebx
lea eax, [ebp + 0x214]
push eax
lea esi, [ebp + 0xe0]
call fcn.0040eb2d
mov byte [ebp - 4], 0xb
or dword [ebp - 0x10], 4
jmp 0x40ce24
lea eax, [ebp + 0x214]
push eax
lea esi, [ebp + 0x54]
call fcn.0040683d
mov dword [ebp - 4], 0xc
or dword [ebp - 0x10], 8
mov esi, eax
lea edi, [ebp + 0x214]
call fcn.004061b9
test byte [ebp - 0x10], 8
je 0x40ce46
and dword [ebp - 0x10], 0xfffffff7
push ebx
push 1
lea ecx, [ebp + 0x54]
call fcn.00406220
mov dword [ebp - 4], 6
test byte [ebp - 0x10], 4
je 0x40ce65
and dword [ebp - 0x10], 0xfffffffb
push ebx
push 1
lea ecx, [ebp + 0xe0]
call fcn.00406220
push ebx
push 0x441b18
lea eax, [ebp + 0x1f8]
push eax
call fcn.0040eb08
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x40ce9f
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp + 0x1f8]
push eax
lea esi, [ebp + 0xc4]
call fcn.0040eb2d
mov byte [ebp - 4], 0xd
or dword [ebp - 0x10], 0x10
jmp 0x40ced7
push ebx
push 0x43f73a
lea ecx, [ebp + 0x150]
mov dword [ebp + 0x164], 0xf
mov dword [ebp + 0x160], ebx
mov byte [ebp + 0x150], bl
call fcn.004062db
mov dword [ebp - 4], 0xe
or dword [ebp - 0x10], 0x20
lea eax, [ebp + 0x150]
mov esi, eax
lea edi, [ebp + 0x1dc]
call fcn.004061b9
test byte [ebp - 0x10], 0x20
je 0x40cefc
and dword [ebp - 0x10], 0xffffffdf
push ebx
push 1
lea ecx, [ebp + 0x150]
call fcn.00406220
mov dword [ebp - 4], 6
test byte [ebp - 0x10], 0x10
je 0x40cf1b
and dword [ebp - 0x10], 0xffffffef
push ebx
push 1
lea ecx, [ebp + 0xc4]
call fcn.00406220
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
jne 0x40cf29
mov eax, dword [ebp + 0x208]
push eax
push ebx
lea eax, [ebp + 0x1f8]
push eax
lea esi, [ebp + 0x38]
call fcn.0040eb2d
mov esi, eax
lea edi, [ebp + 0x1f8]
mov byte [ebp - 4], 0xf
call fcn.004061b9
push ebx
push 1
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 6
call fcn.00406220
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jle 0x40cf7f
add eax, 0xfffffffd
push eax
push ebx
lea eax, [ebp + 0x230]
push eax
lea esi, [ebp]
call fcn.0040eb2d
mov byte [ebp - 4], 0x10
or dword [ebp - 0x10], 0x40
jmp 0x40cfba
push ebx
push 0x43f73a
lea ecx, [ebp + 0x118]
mov dword [ebp + 0x12c], 0xf
mov dword [ebp + 0x128], ebx
mov byte [ebp + 0x118], bl
call fcn.004062db
mov dword [ebp - 4], 0x11
or dword [ebp - 0x10], 0x80
lea eax, [ebp + 0x118]
mov esi, eax
lea edi, [ebp + 0x1c0]
call fcn.004061b9
test byte [ebp - 0x10], 0x80
je 0x40cfe2
and dword [ebp - 0x10], 0xffffff7f
push ebx
push 1
lea ecx, [ebp + 0x118]
call fcn.00406220
mov dword [ebp - 4], 6
test byte [ebp - 0x10], 0x40
je 0x40cffe
and dword [ebp - 0x10], 0xffffffbf
push ebx
push 1
lea ecx, [ebp]
call fcn.00406220
push ebx
push 0x441cd0
lea eax, [ebp + 0x214]
push eax
call fcn.0040eb08
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x40d03b
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp + 0x214]
push eax
lea esi, [ebp + 0x8c]
call fcn.0040eb2d
mov byte [ebp - 4], 0x12
or dword [ebp - 0x10], 0x100
jmp 0x40d076
push ebx
push 0x43f73a
lea ecx, [ebp + 0x134]
mov dword [ebp + 0x148], 0xf
mov dword [ebp + 0x144], ebx
mov byte [ebp + 0x134], bl
call fcn.004062db
mov dword [ebp - 4], 0x13
or dword [ebp - 0x10], 0x200
lea eax, [ebp + 0x134]
mov esi, eax
lea edi, [ebp + 0x1a4]
call fcn.004061b9
test dword [ebp - 0x10], 0x200
je 0x40d0a1
and dword [ebp - 0x10], 0xfffffdff
push ebx
push 1
lea ecx, [ebp + 0x134]
call fcn.00406220
mov dword [ebp - 4], 6
test dword [ebp - 0x10], 0x100
je 0x40d0c6
and dword [ebp - 0x10], 0xfffffeff
push ebx
push 1
lea ecx, [ebp + 0x8c]
call fcn.00406220
cmp dword [ebp - 0x14], 0xffffffff
lea eax, [ebp + 0x214]
je 0x40d0ec
push dword [ebp - 0x14]
lea esi, [ebp + 0x70]
push ebx
push eax
call fcn.0040eb2d
mov byte [ebp - 4], 0x14
or dword [ebp - 0x10], 0x400
jmp 0x40d106
push eax
lea esi, [ebp + 0xa8]
call fcn.0040683d
mov dword [ebp - 4], 0x15
or dword [ebp - 0x10], 0x800
mov esi, eax
lea edi, [ebp + 0x214]
call fcn.004061b9
xor edi, edi
inc edi
test dword [ebp - 0x10], 0x800
je 0x40d133
and dword [ebp - 0x10], 0xfffff7ff
push ebx
push edi
lea ecx, [ebp + 0xa8]
call fcn.00406220
mov dword [ebp - 4], 6
test dword [ebp - 0x10], 0x400
je 0x40d154
and dword [ebp - 0x10], 0xfffffbff
push ebx
push edi
lea ecx, [ebp + 0x70]
call fcn.00406220
mov ecx, 0x3a98
lea eax, [ebp + 0x24c]
mov byte [eax], bl
inc eax
dec ecx
jne 0x40d15f
mov eax, dword [ebp + 0x1f8]
push 0x10
pop esi
cmp dword [ebp + 0x20c], esi
jae 0x40d17c
lea eax, [ebp + 0x1f8]
push eax
call dword [0x44b14c]
mov eax, dword [ebp + 0x3df4]
cmp dword [ebp + 0x3e08], esi
jae 0x40d197
lea eax, [ebp + 0x3df4]
push eax
call dword [0x44b14c]
push ebx
push ebx
push ebx
push ebx
push 0x43f73a
call dword [0x44b16c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1dc]
cmp dword [ebp + 0x1f0], esi
jae 0x40d1c4
lea eax, [ebp + 0x1dc]
push eax
call fcn.00421e33
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x1c0]
pop ecx
cmp dword [ebp + 0x1d4], esi
jae 0x40d1e2
lea eax, [ebp + 0x1c0]
push str.https
push eax
call dword [0x44b264]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xff800000
add esi, 0x4800000
cmp dword [ebp - 0x14], ebx
je 0x40d2f1
cmp dword [ebp + 0x20c], 0x10
mov eax, dword [ebp + 0x1f8]
jae 0x40d21e
lea eax, [ebp + 0x1f8]
push ebx
push esi
push 3
push ebx
push ebx
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
call dword [0x44b28c]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x40d2e8
cmp dword [ebp + 0x228], 0x10
mov ecx, dword [ebp + 0x214]
jae 0x40d251
lea ecx, [ebp + 0x214]
push ebx
push esi
push ebx
push ebx
push ebx
push ecx
push 0x441cdc
push eax
call dword [0x44b2d0]
mov esi, eax
cmp esi, ebx
je 0x40d2df
push ebx
push ebx
push ebx
push ebx
push esi
call dword [0x44b250]
push ebx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x3ce4]
push eax
push 0x13
push esi
mov dword [ebp - 0x28], 0x100
call dword [0x44b2e8]
test eax, eax
jne 0x40d29e
push str.ERROR
jmp 0x40d2f8
lea eax, [ebp + 0x3ce4]
push eax
call fcn.00421e33
pop ecx
cmp eax, 0xc8
jne 0x40d297
cmp dword [ebp - 0x1c], ebx
je 0x40d2d8
lea eax, [ebp - 0x24]
push eax
push 0x3a97
lea eax, [ebp + 0x24c]
push eax
push esi
call dword [0x44b190]
mov eax, dword [ebp - 0x24]
mov byte [ebp + eax + 0x24c], bl
push esi
call dword [0x44b168]
push dword [ebp - 0x10]
call dword [0x44b168]
push dword [ebp - 0x14]
call dword [0x44b168]
lea eax, [ebp + 0x24c]
push eax
mov esi, dword [ebp - 0x20]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov ecx, esi
mov byte [esi], bl
call fcn.004061fd
push ebx
push edi
lea ecx, [ebp + 0x1a4]
call fcn.00406220
push ebx
push edi
lea ecx, [ebp + 0x1dc]
call fcn.00406220
push ebx
push edi
lea ecx, [ebp + 0x1c0]
call fcn.00406220
push ebx
push edi
lea ecx, [ebp + 0x230]
call fcn.00406220
push ebx
push edi
lea ecx, [ebp + 0x1f8]
call fcn.00406220
push ebx
push edi
lea ecx, [ebp + 0x214]
call fcn.00406220
push ebx
push edi
lea ecx, [ebp + 0x3df4]
call fcn.00406220
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3de4]
xor ecx, ebp
call fcn.00420e82
add ebp, 0x3de8
leave
ret