Function at 0x40ae70
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4911c1
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x4c72d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x9c], edi
lea ecx, [ebp - 0xd8]
call fcn.0045f9a0
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x3c7a0]
cmp eax, 0x64
jg 0x40ba79
je 0x40b61a
test eax, eax
je 0x40b3db
cmp eax, 0x32
jne 0x40bc20
lea eax, [edi + 0xecd8]
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xc0], eax
mov eax, 0x5a30a8
mov dword [ebp - 0xa8], eax
mov edi, edi
lea ecx, [eax + 8]
mov dword [ebp - 0xa0], 2
mov esi, eax
nop
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40af3d
cmp eax, 0x18f
ja 0x40af37
imul eax, eax, 0xcc
mov byte [eax + edi + 0x273d4], 0
mov dword [eax + edi + 0x273d8], 0xffffffff
mov dword [esi], 0xffffffff
mov edx, 4
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x40af6f
cmp eax, 0x18f
ja 0x40af69
imul eax, eax, 0xcc
mov byte [eax + edi + 0x273d4], 0
mov dword [eax + edi + 0x273d8], 0xffffffff
mov dword [ecx], 0xffffffff
add ecx, 4
dec edx
jne 0x40af42
add esi, 4
dec dword [ebp - 0xa0]
jne 0x40af10
mov esi, dword [ebp - 0xb0]
lea ecx, [edi + 0xecd8]
lea eax, [esi + 6]
push eax
call fcn.0040f2b0
mov eax, dword [ebp - 0xa8]
inc esi
add eax, 0x28
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xa8], eax
cmp eax, 0x5a3148
jl 0x40af00
mov eax, dword [0x5a3070]
mov dword [ebp - 0xac], 0
test eax, eax
js 0x40bc20
lea edx, [ebp - 0xac]
push edx
lea ecx, [edi + 0xed24]
push eax
call fcn.0040be40
mov esi, eax
mov dword [ebp - 0xa4], eax
test esi, esi
je 0x40bc20
xor ecx, ecx
mov dword [ebp - 0xa0], 4
mov eax, 0x214
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], 0x5a30ac
jmp 0x40b020
mov dword [ecx*4 + 0x5a307c], 0xffffffff
add eax, 0x27
mov dword [ecx*4 + 0x5a308c], 0
mov ecx, esi
mov dword [ebp - 0xbc], eax
call fcn.0045fd40
test al, al
jne 0x40b126
xor eax, eax
lea esi, [edi + 0x273d4]
mov dword [ebp - 0xa8], eax
lea esp, [esp]
cmp byte [esi], 0
je 0x40b07e
inc eax
add esi, 0xcc
mov dword [ebp - 0xa8], eax
cmp eax, 0x190
jl 0x40b060
jmp 0x40b120
lea ecx, [esi + 0xb4]
mov byte [esi], 1
call fcn.0045fbb0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xac], 0
mov dword [esi + 4], 1
mov esi, dword [ebp - 0xa8]
cmp esi, 0xffffffff
je 0x40b120
mov ecx, dword [ebp - 0xa4]
call fcn.00460050
push eax
mov eax, dword [ebp - 0xb4]
mov ecx, edi
inc eax
push eax
push 0xcf
push 2
push esi
push 1
call fcn.0042dfc0
imul eax, esi, 0xcc
lea ecx, [edi + 0x273d4]
add eax, ecx
cmp byte [eax], 0
je 0x40b118
cmp dword [eax + 0xac], 1
jne 0x40b118
mov dword [eax + 0xb0], 1
mov dword [eax + 0x7c], 0
mov dword [eax + 0x84], 0
mov dword [eax + 0x80], 0
mov eax, dword [ebp - 0xb0]
mov dword [eax], esi
mov esi, dword [ebp - 0xa4]
cmp dword [esi + 0x8c], 0
je 0x40b1cc
mov eax, dword [esi + 0x88]
cmp eax, dword [edi + 0xad598]
je 0x40b1cc
mov edx, dword [ebp - 0xb8]
cmp edx, 3
ja 0x40b1b2
mov eax, dword [ebp - 0xb4]
lea edi, [ebp - 0x98]
mov ecx, 0x21
mov esi, 0x49cb10
rep movsd dword es:[edi], dword [esi]
add dword [ebp - 0x90], eax
add dword [ebp - 0x88], eax
lea eax, [ebp - 0x98]
mov ecx, dword [ebp - 0xc0]
add dword [ebp - 0x98], edx
add dword [ebp - 0x94], 0x1fe
add dword [ebp - 0x8c], 0x1fe
push eax
call fcn.0040eff0
mov edi, dword [ebp - 0x9c]
mov esi, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xb8]
mov eax, dword [esi + 0x88]
mov dword [edx*4 + 0x5a307c], eax
mov eax, dword [esi + 0x8c]
mov dword [edx*4 + 0x5a308c], eax
lea ecx, [esi + 0x18]
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa8], ecx
nop
call fcn.0045fd40
test al, al
jne 0x40b2ee
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0xa8]
call fcn.0045fac0
mov ecx, esi
call fcn.0040ada0
add esp, 0x18
lea ecx, [ebp - 0xd8]
call fcn.0045fd70
xor eax, eax
lea esi, [edi + 0x273d4]
mov dword [ebp - 0xac], eax
cmp byte [esi], 0
je 0x40b243
inc eax
add esi, 0xcc
mov dword [ebp - 0xac], eax
cmp eax, 0x190
jl 0x40b225
jmp 0x40b2ee
lea ecx, [esi + 0xb4]
mov byte [esi], 1
call fcn.0045fbb0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xac], 0
mov dword [esi + 4], 1
mov esi, dword [ebp - 0xac]
cmp esi, 0xffffffff
je 0x40b2ee
lea ecx, [ebp - 0xd8]
call fcn.00460050
push eax
push dword [ebp - 0xbc]
mov ecx, edi
push 0xfb
push 2
push esi
push 1
call fcn.0042dfc0
imul eax, esi, 0xcc
lea ecx, [edi + 0x273d4]
add eax, ecx
cmp byte [eax], 0
je 0x40b2db
cmp dword [eax + 0xac], 1
jne 0x40b2db
mov dword [eax + 0xb0], 1
mov dword [eax + 0x7c], 0
mov dword [eax + 0x84], 0
mov dword [eax + 0x80], 0
mov eax, dword [ebp - 0xa4]
add eax, dword [ebp - 0xa0]
mov dword [eax*4 + 0x5a30b0], esi
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xa8]
inc eax
add dword [ebp - 0xbc], 0x1e
add ecx, 0x18
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa8], ecx
cmp eax, 4
jl 0x40b1e0
cmp dword [edi + 0xed30], 0xffffffff
lea edx, [edi + 0xed24]
je 0x40b395
mov eax, dword [edx + 8]
mov eax, dword [eax + 4]
mov dword [edx + 8], eax
mov eax, dword [edx]
inc dword [edx + 0xc]
mov ecx, dword [edx + 8]
cmp ecx, dword [eax]
je 0x40b38e
mov esi, dword [ecx + 4]
add esi, 8
mov dword [ebp - 0xa4], esi
je 0x40b395
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xb4]
add edx, 0x28
mov ecx, dword [ebp - 0xb8]
sub eax, 0x9c
add dword [ebp - 0xa0], 0xa
inc ecx
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb0], edx
cmp edx, 0x5a314c
jl 0x40b020
jmp 0x40b395
mov dword [edx + 0xc], 0xffffffff
imul eax, dword [0x5a3070], 0x1ea
mov ecx, dword [0x5a3074]
dec ecx
cdq
idiv ecx
mov ecx, 0x24a
sub ecx, eax
mov eax, dword [0x5a30a4]
cmp eax, 0xffffffff
je 0x40b3cc
imul eax, eax, 0xcc
add eax, 0x273d4
add eax, edi
je 0x40b3cc
mov dword [eax + 0x1c], ecx
mov dword [edi + 0x3c7a0], 0x64
jmp 0x40bc20
mov dword [0x5a3070], 0
mov esi, 0x5a30a8
mov eax, dword [edi + 0xed28]
mov edi, 0x5a308c
mov dword [0x5a3074], eax
mov dword [0x5a30a0], 0xffffffff
mov dword [0x5a30a4], 0xffffffff
mov byte [0x5a3078], 0
mov byte [0x5a3148], 0
lea esp, [esp]
lea eax, [esi + 8]
mov ecx, esi
mov edx, 2
lea ebx, [ebx]
movdqa xmm0, xmmword [0x4b1b70]
lea eax, [eax + 0x10]
mov dword [ecx], 0xffffffff
add ecx, 4
movdqu xmmword [eax - 0x10], xmm0
dec edx
jne 0x40b430
mov dword [edi - 0x10], 0xffffffff
add esi, 0x28
mov dword [edi], edx
add edi, 4
cmp esi, 0x5a3148
jl 0x40b420
cmp dword [0x5a3074], 1
mov edi, dword [ebp - 0x9c]
jle 0x40bc0b
lea ecx, [ebp - 0x108]
call fcn.0045f9a0
mov esi, dword [edi + 0x3c8b8]
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0
call fcn.0045fb00
test esi, esi
lea ecx, [ebp - 0xf0]
setne byte [0x5a309c]
call fcn.0045f9a0
lea ecx, [ebp - 0xf0]
mov dword [edi + 0x3c8b8], 0
mov byte [ebp - 4], 0
call fcn.0045fb00
cmp byte [edi + 0xad8e3], 0
jne 0x40b4d3
mov ecx, edi
call fcn.00443b80
push 0
push 0xb
push str.histback.kg
mov ecx, edi
call fcn.00422a90
lea esi, [edi + 0x273d4]
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], eax
lea esp, [esp]
cmp byte [eax], 0
je 0x40b521
inc ecx
add eax, 0xcc
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], eax
cmp ecx, 0x190
jl 0x40b500
jmp 0x40b578
lea ecx, [eax + 0xb4]
mov byte [eax], 1
call fcn.0045fbb0
mov eax, dword [ebp - 0x9c]
mov dword [eax + 0xb0], 0
mov dword [eax + 0xac], 0
mov dword [eax + 4], 1
mov eax, dword [ebp - 0xa0]
cmp eax, 0xffffffff
je 0x40b578
push 0
push 0
push 0
push 0xb
push eax
push 1
mov ecx, edi
call fcn.0042de20
mov eax, dword [ebp - 0xa0]
mov dword [0x5a30a0], eax
xor eax, eax
mov dword [ebp - 0x9c], eax
cmp byte [esi], 0
je 0x40b59b
inc eax
add esi, 0xcc
mov dword [ebp - 0x9c], eax
cmp eax, 0x190
jl 0x40b580
jmp 0x40b5f0
lea ecx, [esi + 0xb4]
mov byte [esi], 1
call fcn.0045fbb0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xac], 0
mov dword [esi + 4], 1
mov esi, dword [ebp - 0x9c]
cmp esi, 0xffffffff
je 0x40b5f0
push 0x4c8740
push 0x24a
push 0x4d5
push 5
push esi
push 1
mov ecx, edi
call fcn.0042de20
mov dword [0x5a30a4], esi
mov ecx, edi
call fcn.0040e130
push 0xffffffffffffffff
lea ecx, [edi + 0xe8d8]
mov byte [edi + 0xed08], 1
call fcn.00453770
mov dword [edi + 0x3c7a0], 0x32
jmp 0x40bc20
cmp dword [edi + 0x3c834], 0xffffffff
je 0x40b682
mov eax, dword [edi + 0xe69c]
lea ecx, [edi + 0xe69c]
mov eax, dword [eax]
call eax
mov ecx, dword [edi + 0xe6d0]
test al, al
je 0x40b65c
test ecx, ecx
je 0x40b682
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
je 0x40b682
mov ecx, dword [edi + 0xe6d0]
test ecx, ecx
je 0x40b682
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x40b682
test ecx, ecx
je 0x40b66a
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
jne 0x40b682
cmp byte [edi + 0xad649], 0
jne 0x40b682
mov ecx, dword [edi + 0xe6d0]
test ecx, ecx
je 0x40b682
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [edi + 0xe834]
lea ecx, [edi + 0xecd8]
and eax, 0x1004001
neg eax
sbb eax, eax
neg eax
push eax
push dword [edi + 0xe8d4]
push dword [edi + 0xe8d0]
push dword [edi + 0xecb8]
call fcn.0040f420
mov eax, dword [edi + 0xecf0]
mov edx, dword [edi + 0xe838]
mov ecx, edx
mov esi, dword [edi + 0xe834]
mov dword [ebp - 0x9c], eax
mov eax, esi
shr ecx, 1
shr eax, 1
xor al, cl
and al, cl
test al, 1
jne 0x40b700
mov ecx, esi
mov eax, edx
shr ecx, 0xd
shr eax, 0xd
xor al, cl
and al, cl
mov ecx, esi
test al, 1
jne 0x40b706
mov eax, ecx
shr edx, 0x17
shr eax, 0x17
xor dl, al
and dl, al
test dl, 1
je 0x40b710
jmp 0x40b706
mov ecx, dword [edi + 0xe834]
mov dword [ebp - 0x9c], 1
test byte [edi + 0xe834], 1
jne 0x40b74e
shr ecx, 0xe
test cl, 1
jne 0x40b74e
mov eax, dword [0x5a30a4]
mov byte [0x5a3078], 0
cmp eax, 0xffffffff
je 0x40b74e
imul eax, eax, 0xcc
add eax, 0x273d4
add eax, edi
je 0x40b74e
movdqu xmm0, xmmword [0x4c8740]
movdqu xmmword [eax + 0x7c], xmm0
mov edx, dword [edi + 0xe838]
mov eax, edx
mov esi, dword [edi + 0xe834]
mov ecx, esi
shr ecx, 0x1f
shr eax, 0x1f
xor al, cl
and al, cl
test al, 1
je 0x40b789
lea esi, [edi + 0x3c75c]
push esi
lea ecx, [edi + 0x3c750]
call fcn.00425ac0
mov dword [esi], 0x13
jmp 0x40bc20
mov eax, dword [ebp - 0x9c]
lea ecx, [eax - 1]
cmp ecx, 4
ja case.default.0x40b79b
jmp dword [ecx*4 + 0x40bc50]
push 2
mov ecx, edi
call fcn.0043e920
mov dword [edi + 0x3c7a0], 0x384
jmp 0x40bc20
mov eax, dword [0x5a3070]
mov ecx, dword [0x5a3074]
cmp eax, ecx
jge 0x40bc20
add eax, 4
mov dword [0x5a3070], eax
cmp eax, ecx
jl 0x40b7e1
lea eax, [ecx - 1]
mov dword [0x5a3070], eax
mov dword [edi + 0x3c7a0], 0x32
jmp 0x40bc20
mov eax, dword [0x5a3070]
test eax, eax
jle 0x40bc20
sub eax, 4
mov ecx, 0
cmovs eax, ecx
mov dword [0x5a3070], eax
mov dword [edi + 0x3c7a0], 0x32
jmp 0x40bc20
mov eax, dword [0x5a3074]
dec eax
mov dword [0x5a3070], eax
mov dword [edi + 0x3c7a0], 0x32
jmp 0x40bc20
mov dword [0x5a3070], 0
mov dword [edi + 0x3c7a0], 0x32
jmp 0x40bc20
lea ecx, [eax - 6]
cmp ecx, 3
ja 0x40b889
mov edx, dword [ecx*4 + 0x5a308c]
test edx, edx
jle 0x40bc20
movzx eax, byte [edi + 0xad665]
push eax
push edx
push dword [ecx*4 + 0x5a307c]
mov ecx, edi
call fcn.0043eb90
mov byte [0x5a3148], 1
jmp 0x40bc20
mov ecx, edx
mov eax, esi
shr ecx, 4
shr eax, 4
xor al, cl
and al, cl
test al, 1
jne 0x40b8c3
mov eax, dword [edi + 0xe834]
shr eax, 0x10
shr edx, 0x10
xor dl, al
and dl, al
test dl, 1
jne 0x40b8c3
lea esi, [edi + 0xe8d8]
push 2
mov ecx, esi
call fcn.0040ad30
test al, al
je 0x40b8e7
lea esi, [edi + 0xe8d8]
push 3
mov ecx, esi
call fcn.00453770
mov eax, dword [0x5a3070]
mov ecx, dword [0x5a3074]
cmp eax, ecx
jge 0x40b8e7
inc eax
jmp 0x40b7d0
mov edx, dword [edi + 0xe838]
mov ecx, edx
mov eax, dword [edi + 0xe834]
shr ecx, 5
shr eax, 5
xor al, cl
and al, cl
test al, 1
jne 0x40b925
mov eax, dword [edi + 0xe834]
shr eax, 0x11
shr edx, 0x11
xor dl, al
and dl, al
test dl, 1
jne 0x40b925
push 1
mov ecx, esi
call fcn.0040ad30
test al, al
je 0x40b95e
push 3
mov ecx, esi
call fcn.00453770
mov eax, dword [0x5a3070]
test eax, eax
jle 0x40b954
dec eax
mov ecx, 0
cmovs eax, ecx
mov dword [0x5a3070], eax
mov dword [edi + 0x3c7a0], 0x32
jmp 0x40bc20
mov dword [edi + 0x3c7a0], 0x384
mov al, byte [edi + 0xe834]
mov cl, byte [edi + 0xe838]
mov esi, dword [edi + 0xe8d0]
xor cl, al
mov edx, dword [edi + 0xe8d4]
and cl, al
test cl, 1
jne 0x40b999
mov ecx, dword [edi + 0xe834]
mov eax, dword [edi + 0xe838]
shr ecx, 0xe
shr eax, 0xe
xor al, cl
and al, cl
test al, 1
je 0x40b9db
lea eax, [esi - 0x4d5]
cmp eax, 0x1a
ja 0x40b9db
lea eax, [edx - 0x5a]
cmp eax, 0x20b
ja 0x40b9db
mov eax, dword [0x5a30a4]
mov byte [0x5a3078], 1
cmp eax, 0xffffffff
je 0x40b9db
imul eax, eax, 0xcc
add eax, 0x273d4
add eax, edi
je 0x40b9db
movdqu xmm0, xmmword [0x4c8750]
movdqu xmmword [eax + 0x7c], xmm0
test byte [edi + 0xe834], 1
jne 0x40b9f5
mov eax, dword [edi + 0xe834]
shr eax, 0xe
test al, 1
je 0x40bc20
cmp byte [0x5a3078], 0
je 0x40bc20
cmp edx, 0x6b
jge 0x40ba13
mov dword [ebp - 0x9c], 0x6b
jmp 0x40ba23
mov eax, 0x255
cmp edx, eax
cmovg edx, eax
mov dword [ebp - 0x9c], edx
mov esi, dword [0x5a3074]
mov eax, 0x1ea
cdq
dec esi
idiv esi
cdq
sub eax, edx
mov ecx, eax
mov eax, 0x42df9bb1
sar ecx, 1
sub ecx, dword [ebp - 0x9c]
add ecx, 0x255
imul ecx, esi
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [0x5a3070]
je 0x40bc20
mov dword [0x5a3070], eax
mov dword [edi + 0x3c7a0], 0x32
jmp 0x40bc20
cmp eax, 0x384
jne 0x40bc20
cmp byte [edi + 0xad9c4], 0
jne 0x40ba84
lea ecx, [edi + 0xecd8]
call fcn.0040ed00
mov eax, dword [0x5a30a0]
cmp eax, 0xffffffff
je 0x40bacc
cmp eax, 0x18f
ja 0x40bac2
imul eax, eax, 0xcc
mov byte [eax + edi + 0x273d4], 0
mov dword [eax + edi + 0x273d8], 0xffffffff
mov dword [0x5a30a0], 0xffffffff
mov eax, dword [0x5a30a4]
cmp eax, 0xffffffff
je 0x40bb00
cmp eax, 0x18f
ja 0x40baf6
imul eax, eax, 0xcc
mov byte [edi + eax + 0x273d4], 0
mov dword [edi + eax + 0x273d8], 0xffffffff
mov dword [0x5a30a4], 0xffffffff
mov ecx, 0x5a30a8
mov dword [ebp - 0xac], ecx
jmp 0x40bb10
lea eax, [ecx + 8]
mov dword [ebp - 0x9c], 2
mov esi, ecx
nop
mov ecx, dword [esi]
cmp ecx, 0xffffffff
je 0x40bb4e
cmp ecx, 0x18f
ja 0x40bb48
imul ecx, ecx, 0xcc
mov byte [ecx + edi + 0x273d4], 0
mov dword [ecx + edi + 0x273d8], 0xffffffff
mov dword [esi], 0xffffffff
mov edx, 4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40bb81
cmp ecx, 0x18f
ja 0x40bb7b
imul ecx, ecx, 0xcc
mov byte [ecx + edi + 0x273d4], 0
mov dword [ecx + edi + 0x273d8], 0xffffffff
mov dword [eax], 0xffffffff
add eax, 4
dec edx
jne 0x40bb53
add esi, 4
dec dword [ebp - 0x9c]
jne 0x40bb20
mov ecx, dword [ebp - 0xac]
add ecx, 0x28
mov dword [ebp - 0xac], ecx
cmp ecx, 0x5a3148
jl 0x40bb10
cmp byte [edi + 0xad665], dl
je 0x40bbcc
cmp byte [0x5a3148], dl
je 0x40bbcc
mov eax, dword [edi + 0xe69c]
lea ecx, [edi + 0xe69c]
call dword [eax + 0x14]
movzx eax, byte [0x5a309c]
mov ecx, edi
push eax
call fcn.00443560
cmp byte [edi + 0xad4f4], 0
je 0x40bbfa
lea ecx, [edi + 0x2df4]
call fcn.0044ed30
lea ecx, [edi + 0x3094]
call fcn.0044ed30
mov byte [edi + 0xada05], 1
mov dword [edi + 0x3c7a0], 0
push ecx
mov ecx, edi
call fcn.004250a0
mov dword [edi + 0x3c75c], eax
add dword [edi + 0x3c754], 0xfffffffc
lea ecx, [ebp - 0xd8]
mov dword [ebp - 4], 0xffffffff
call fcn.0045fb00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466a0a
mov esp, ebp
pop ebp
ret