Function at 0x40a126
Capabilities:
Check http status code

Disassembly:
push ebp
lea ebp, [esp - 0x3c7c]
mov eax, 0x3c7c
call fcn.0042cdf0
push 0xffffffffffffffff
push 0x432125
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x443674]
xor eax, ebp
mov dword [ebp + 0x3c78], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x3c84]
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 + 0xa0], eax
mov dword [ebp + 0x9c], ebx
mov byte [ebp + 0x8c], bl
mov dword [ebp + 0x84], eax
mov dword [ebp + 0x80], ebx
mov byte [ebp + 0x70], bl
mov dword [ebp + 0xbc], eax
mov dword [ebp + 0xb8], ebx
mov byte [ebp + 0xa8], bl
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x48], ebx
mov byte [ebp + 0x38], bl
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x2c], ebx
mov byte [ebp + 0x1c], bl
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], ebx
mov byte [ebp], bl
lea eax, [ebp + 0xc4]
push eax
lea eax, [ebp + 0x3c88]
mov byte [ebp - 4], 6
mov dword [ebp - 0x14], ebx
call fcn.00409fe2
pop ecx
mov esi, eax
lea edi, [ebp + 0xa8]
mov byte [ebp - 4], 7
call fcn.004040b5
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp + 0xc4]
mov byte [ebp - 4], 6
call fcn.0040411c
push 8
pop esi
push esi
push str.https:__
mov eax, esi
lea edx, [ebp + 0xa8]
call fcn.0040c25f
test eax, eax
je 0x40a238
push 7
pop esi
push esi
push str.http:__
mov eax, esi
lea edx, [ebp + 0xa8]
call fcn.0040c25f
test eax, eax
jne 0x40a23b
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x14]
push edi
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp + 0xa8]
inc eax
push ecx
mov byte [ebp - 0x18], 0x2f
call fcn.0040c1d1
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x40a292
push ebx
push 0x43bd9a
lea ecx, [ebp + 0xc4]
mov dword [ebp + 0xd8], 0xf
mov dword [ebp + 0xd4], ebx
mov byte [ebp + 0xc4], bl
call fcn.0040415e
mov byte [ebp - 4], 8
lea eax, [ebp + 0xc4]
mov dword [ebp - 0x10], edi
jmp 0x40a2b2
push 0xffffffffffffffff
push eax
lea eax, [ebp + 0xa8]
push eax
lea esi, [ebp + 0x54]
call fcn.0040c19a
mov dword [ebp - 4], 9
mov dword [ebp - 0x10], 2
mov esi, eax
lea edi, [ebp + 0x8c]
call fcn.004040b5
test byte [ebp - 0x10], 2
je 0x40a2d4
and dword [ebp - 0x10], 0xfffffffd
push ebx
push 1
lea ecx, [ebp + 0x54]
call fcn.0040411c
mov dword [ebp - 4], 6
test byte [ebp - 0x10], 1
je 0x40a2f3
and dword [ebp - 0x10], 0xfffffffe
push ebx
push 1
lea ecx, [ebp + 0xc4]
call fcn.0040411c
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xa8]
cmp ecx, 0xffffffff
je 0x40a312
cmp dword [ebp + 0xbc], 0x10
jae 0x40a327
lea eax, [ebp + 0xa8]
jmp 0x40a327
cmp dword [ebp + 0xbc], 0x10
jae 0x40a321
lea eax, [ebp + 0xa8]
mov ecx, dword [ebp + 0xb8]
add ecx, eax
cmp dword [ebp + 0xbc], 0x10
mov eax, dword [ebp + 0xa8]
jae 0x40a33e
lea eax, [ebp + 0xa8]
push dword [ebp - 0x24]
add eax, dword [ebp - 0x14]
push ecx
push eax
lea eax, [ebp + 0xc4]
push eax
mov dword [ebp + 0xd8], 0xf
mov dword [ebp + 0xd4], ebx
mov byte [ebp + 0xc4], bl
call fcn.0040c4e0
lea esi, [ebp + 0xc4]
lea edi, [ebp + 0x70]
mov byte [ebp - 4], 0xa
call fcn.004040b5
push ebx
push 1
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.0040411c
push ebx
push 0x43e0f4
lea eax, [ebp + 0x8c]
push eax
call fcn.0040c175
cmp eax, 0xffffffff
je 0x40a3bd
push eax
push ebx
lea eax, [ebp + 0x8c]
push eax
lea esi, [ebp + 0xc4]
call fcn.0040c19a
mov byte [ebp - 4], 0xb
or dword [ebp - 0x10], 4
jmp 0x40a3d7
lea eax, [ebp + 0x8c]
push eax
lea esi, [ebp + 0x54]
call fcn.00404540
mov dword [ebp - 4], 0xc
or dword [ebp - 0x10], 8
mov esi, eax
lea edi, [ebp + 0x8c]
call fcn.004040b5
test byte [ebp - 0x10], 8
je 0x40a3f9
and dword [ebp - 0x10], 0xfffffff7
push ebx
push 1
lea ecx, [ebp + 0x54]
call fcn.0040411c
mov dword [ebp - 4], 6
test byte [ebp - 0x10], 4
je 0x40a418
and dword [ebp - 0x10], 0xfffffffb
push ebx
push 1
lea ecx, [ebp + 0xc4]
call fcn.0040411c
push ebx
push 0x43dfdc
lea eax, [ebp + 0x70]
push eax
call fcn.0040c175
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x40a449
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp + 0x70]
push eax
lea esi, [ebp + 0x54]
call fcn.0040c19a
mov byte [ebp - 4], 0xd
or dword [ebp - 0x10], 0x10
jmp 0x40a481
push ebx
push 0x43bd9a
lea ecx, [ebp + 0xc4]
mov dword [ebp + 0xd8], 0xf
mov dword [ebp + 0xd4], ebx
mov byte [ebp + 0xc4], bl
call fcn.0040415e
mov dword [ebp - 4], 0xe
or dword [ebp - 0x10], 0x20
lea eax, [ebp + 0xc4]
mov esi, eax
lea edi, [ebp + 0x1c]
call fcn.004040b5
test byte [ebp - 0x10], 0x20
je 0x40a4a3
and dword [ebp - 0x10], 0xffffffdf
push ebx
push 1
lea ecx, [ebp + 0xc4]
call fcn.0040411c
mov dword [ebp - 4], 6
test byte [ebp - 0x10], 0x10
je 0x40a4bf
and dword [ebp - 0x10], 0xffffffef
push ebx
push 1
lea ecx, [ebp + 0x54]
call fcn.0040411c
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
jne 0x40a4cd
mov eax, dword [ebp + 0x80]
push eax
push ebx
lea eax, [ebp + 0x70]
push eax
lea esi, [ebp + 0x54]
call fcn.0040c19a
mov esi, eax
lea edi, [ebp + 0x70]
mov byte [ebp - 4], 0xf
call fcn.004040b5
push ebx
push 1
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 6
call fcn.0040411c
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jle 0x40a51d
add eax, 0xfffffffd
push eax
push ebx
lea eax, [ebp + 0xa8]
push eax
lea esi, [ebp + 0x54]
call fcn.0040c19a
mov byte [ebp - 4], 0x10
or dword [ebp - 0x10], 0x40
jmp 0x40a558
push ebx
push 0x43bd9a
lea ecx, [ebp + 0xc4]
mov dword [ebp + 0xd8], 0xf
mov dword [ebp + 0xd4], ebx
mov byte [ebp + 0xc4], bl
call fcn.0040415e
mov dword [ebp - 4], 0x11
or dword [ebp - 0x10], 0x80
lea eax, [ebp + 0xc4]
mov esi, eax
lea edi, [ebp + 0x38]
call fcn.004040b5
test byte [ebp - 0x10], 0x80
je 0x40a57d
and dword [ebp - 0x10], 0xffffff7f
push ebx
push 1
lea ecx, [ebp + 0xc4]
call fcn.0040411c
mov dword [ebp - 4], 6
test byte [ebp - 0x10], 0x40
je 0x40a599
and dword [ebp - 0x10], 0xffffffbf
push ebx
push 1
lea ecx, [ebp + 0x54]
call fcn.0040411c
push ebx
push 0x43e0f8
lea eax, [ebp + 0x8c]
push eax
call fcn.0040c175
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x40a5d3
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp + 0x8c]
push eax
lea esi, [ebp + 0x54]
call fcn.0040c19a
mov byte [ebp - 4], 0x12
or dword [ebp - 0x10], 0x100
jmp 0x40a60e
push ebx
push 0x43bd9a
lea ecx, [ebp + 0xc4]
mov dword [ebp + 0xd8], 0xf
mov dword [ebp + 0xd4], ebx
mov byte [ebp + 0xc4], bl
call fcn.0040415e
mov dword [ebp - 4], 0x13
or dword [ebp - 0x10], 0x200
lea eax, [ebp + 0xc4]
mov esi, eax
lea edi, [ebp]
call fcn.004040b5
test dword [ebp - 0x10], 0x200
je 0x40a636
and dword [ebp - 0x10], 0xfffffdff
push ebx
push 1
lea ecx, [ebp + 0xc4]
call fcn.0040411c
mov dword [ebp - 4], 6
test dword [ebp - 0x10], 0x100
je 0x40a658
and dword [ebp - 0x10], 0xfffffeff
push ebx
push 1
lea ecx, [ebp + 0x54]
call fcn.0040411c
cmp dword [ebp - 0x14], 0xffffffff
lea eax, [ebp + 0x8c]
je 0x40a681
push dword [ebp - 0x14]
lea esi, [ebp + 0xc4]
push ebx
push eax
call fcn.0040c19a
mov byte [ebp - 4], 0x14
or dword [ebp - 0x10], 0x400
jmp 0x40a698
push eax
lea esi, [ebp + 0x54]
call fcn.00404540
mov dword [ebp - 4], 0x15
or dword [ebp - 0x10], 0x800
mov esi, eax
lea edi, [ebp + 0x8c]
call fcn.004040b5
xor edi, edi
inc edi
test dword [ebp - 0x10], 0x800
je 0x40a6c2
and dword [ebp - 0x10], 0xfffff7ff
push ebx
push edi
lea ecx, [ebp + 0x54]
call fcn.0040411c
mov dword [ebp - 4], 6
test dword [ebp - 0x10], 0x400
je 0x40a6df
push ebx
push edi
lea ecx, [ebp + 0xc4]
call fcn.0040411c
push 0x3a98
lea eax, [ebp + 0xe0]
push ebx
push eax
call fcn.00425970
mov eax, dword [ebp + 0x70]
add esp, 0xc
push 0x10
pop esi
cmp dword [ebp + 0x84], esi
jae 0x40a705
lea eax, [ebp + 0x70]
push eax
call dword [0x4463c8]
mov eax, dword [ebp + 0x3c88]
cmp dword [ebp + 0x3c9c], esi
jae 0x40a720
lea eax, [ebp + 0x3c88]
push eax
call dword [0x4463c8]
push ebx
push ebx
push ebx
push ebx
push 0x43bd9a
call dword [0x4463e8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x30], esi
jae 0x40a744
lea eax, [ebp + 0x1c]
push eax
call fcn.0041ef33
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x38]
pop ecx
cmp dword [ebp + 0x4c], esi
jae 0x40a759
lea eax, [ebp + 0x38]
push str.https
push eax
call dword [0x4464dc]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xff800000
add esi, 0x4800000
cmp dword [ebp - 0x14], ebx
je 0x40a862
cmp dword [ebp + 0x84], 0x10
mov eax, dword [ebp + 0x70]
jae 0x40a78f
lea eax, [ebp + 0x70]
push ebx
push esi
push 3
push ebx
push ebx
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
call dword [0x446504]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x40a859
cmp dword [ebp + 0xa0], 0x10
mov ecx, dword [ebp + 0x8c]
jae 0x40a7c2
lea ecx, [ebp + 0x8c]
push ebx
push esi
push ebx
push ebx
push ebx
push ecx
push 0x43e104
push eax
call dword [0x446548]
mov esi, eax
cmp esi, ebx
je 0x40a850
push ebx
push ebx
push ebx
push ebx
push esi
call dword [0x4464c8]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x3b78]
push eax
push 0x13
push esi
mov dword [ebp - 0x1c], 0x100
call dword [0x446560]
test eax, eax
jne 0x40a80f
push str.ERROR
jmp 0x40a869
lea eax, [ebp + 0x3b78]
push eax
call fcn.0041ef33
pop ecx
cmp eax, 0xc8
jne 0x40a808
cmp dword [ebp - 0x10], ebx
je 0x40a849
lea eax, [ebp - 0x10]
push eax
push 0x3a97
lea eax, [ebp + 0xe0]
push eax
push esi
call dword [0x44640c]
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax + 0xe0], bl
push esi
call dword [0x4463e4]
push dword [ebp - 0x24]
call dword [0x4463e4]
push dword [ebp - 0x14]
call dword [0x4463e4]
lea eax, [ebp + 0xe0]
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.004040f9
push ebx
push edi
lea ecx, [ebp]
call fcn.0040411c
push ebx
push edi
lea ecx, [ebp + 0x1c]
call fcn.0040411c
push ebx
push edi
lea ecx, [ebp + 0x38]
call fcn.0040411c
push ebx
push edi
lea ecx, [ebp + 0xa8]
call fcn.0040411c
push ebx
push edi
lea ecx, [ebp + 0x70]
call fcn.0040411c
push ebx
push edi
lea ecx, [ebp + 0x8c]
call fcn.0040411c
push ebx
push edi
lea ecx, [ebp + 0x3c88]
call fcn.0040411c
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 + 0x3c78]
xor ecx, ebp
call fcn.0041e255
add ebp, 0x3c7c
leave
ret