Function at 0x40e63d
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
lea edx, [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x44]
add eax, 0x110
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov dl, byte [ecx + 2]
cmp edx, 4
jne 0x40e68f
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov cx, word [eax + 0xe]
test ecx, ecx
je 0x40e685
mov edx, dword [ebp - 0x44]
xor eax, eax
mov ax, word [edx + 0xe]
cmp eax, 0x40
jle 0x40e68f
mov eax, 0x1770
jmp 0x40f013
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov dl, byte [ecx + 2]
cmp edx, 2
je 0x40e6a9
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov cl, byte [eax + 2]
cmp ecx, 3
jne 0x40e6e5
mov edx, dword [ebp - 0x44]
xor eax, eax
mov ax, word [edx + 0xc]
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov dx, word [ecx + 0xe]
add eax, edx
cmp eax, 0xc8
jle 0x40e6ce
mov eax, 6
jmp 0x40f013
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov cx, word [eax + 0xe]
test ecx, ecx
jne 0x40e6e5
mov eax, 6
jmp 0x40f013
mov word [ebp - 0x4c], 0
mov word [ebp - 0x1c], 0
jmp 0x40e6ff
mov dx, word [ebp - 0x1c]
add dx, 1
mov word [ebp - 0x1c], dx
mov eax, dword [ebp - 0x1c]
and eax, 0xffff
cmp eax, 0xf
jge 0x40f00e
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00410aa2
add esp, 8
mov ax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041184d
add esp, 8
mov dx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00411a29
add esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40e756
mov eax, dword [ebp - 0x3c]
add eax, 0xa
jmp 0x40f013
push 0x2a
mov cx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00410f62
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40e77d
mov eax, dword [ebp - 0x3c]
add eax, 0x14
jmp 0x40f013
mov word [ebp - 0x2c], 0
jmp 0x40e791
mov ax, word [ebp - 0x2c]
add ax, 1
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp - 0x2c]
and ecx, 0xffff
cmp ecx, 8
jge 0x40e7e3
mov edx, dword [ebp - 0x2c]
and edx, 0xffff
xor eax, eax
mov al, byte [edx + ebp - 0x54]
cmp eax, 0xff
jne 0x40e7b7
jmp 0x40e7e3
mov ecx, dword [ebp - 0x2c]
and ecx, 0xffff
mov dl, byte [ecx + ebp - 0x54]
push edx
mov ax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00410f62
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40e7e1
jmp 0x40e7e3
jmp 0x40e785
cmp dword [ebp - 0x3c], 0
je 0x40e7f4
mov eax, dword [ebp - 0x3c]
add eax, 0x1e
jmp 0x40f013
mov edx, dword [ebp - 0x44]
xor eax, eax
mov al, byte [edx + 2]
cmp eax, 4
jne 0x40eac5
push 1
mov cx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004111ca
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40e82c
mov eax, dword [ebp - 0x3c]
add eax, 0x28
jmp 0x40f013
mov byte [ebp - 0x18], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dx, word [ecx + 0xe]
mov word [ebp - 0x34], dx
mov word [ebp - 0x2c], 0
jmp 0x40e851
mov ax, word [ebp - 0x2c]
add ax, 1
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp - 0x2c]
and ecx, 0xffff
mov edx, dword [ebp - 0x34]
and edx, 0xffff
cmp ecx, edx
jge 0x40e996
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x2c]
and edx, 0xffff
mov al, byte [edx + ecx + 0x10]
mov byte [ebp - 0xc], al
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
sar ecx, 2
and ecx, 0xfc
add ecx, 2
push ecx
mov dx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004111ca
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40e8bb
mov eax, dword [ebp - 0x3c]
add eax, 0x50
jmp 0x40f013
push 0x40
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411c5b
add esp, 8
mov byte [ebp - 4], al
mov edx, dword [ebp - 4]
and edx, 0xff
and edx, 2
test edx, edx
je 0x40e8f2
mov eax, dword [ebp + 0xc]
and eax, 0xffff
add eax, 1
push eax
call fcn.00411c2d
add esp, 4
jmp 0x40e947
mov ecx, dword [ebp - 4]
and ecx, 0xff
and ecx, 1
test ecx, ecx
je 0x40e91e
mov edx, dword [ebp - 0x18]
and edx, 0xff
mov eax, dword [ebp - 4]
and eax, 0xff
sar eax, 2
and eax, 0xf
add edx, eax
mov byte [ebp - 0x18], dl
mov cl, byte [ebp - 4]
push ecx
mov dx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004111ca
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40e947
mov eax, dword [ebp - 0x3c]
add eax, 0x50
jmp 0x40f013
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
add eax, 1
mov esi, dword [ebp - 0x34]
and esi, 0xffff
cdq
idiv esi
lea edx, [eax + ecx*4 + 2]
push edx
mov ax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004111ca
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40e991
mov eax, dword [ebp - 0x3c]
add eax, 0x50
jmp 0x40f013
jmp 0x40e845
mov edx, dword [ebp - 0x18]
and edx, 0xff
and edx, 0xf
mov byte [ebp - 0x18], dl
mov word [ebp - 0x28], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov dx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00411731
add esp, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40e9d8
mov eax, dword [ebp - 0x3c]
add eax, 0x5a
jmp 0x40f013
mov cx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004119c4
add esp, 8
mov eax, dword [ebp - 0x24]
mov cx, word [eax + 2]
mov word [ebp - 0x48], cx
mov edx, dword [ebp - 0x24]
mov ax, word [edx]
mov word [ebp - 0x14], ax
mov word [ebp - 0x2c], 0
jmp 0x40ea12
mov cx, word [ebp - 0x2c]
add cx, 1
mov word [ebp - 0x2c], cx
mov edx, dword [ebp - 0x2c]
and edx, 0xffff
mov eax, dword [ebp - 0x18]
and eax, 0xff
cmp edx, eax
jge 0x40eaa0
mov ecx, dword [ebp - 0x48]
and ecx, 0xff
and ecx, 1
mov byte [ebp - 0x58], cl
mov edx, dword [ebp - 0x14]
and edx, 0xff
and edx, 1
mov byte [ebp - 0x5c], dl
mov eax, dword [ebp - 0x48]
and eax, 0xffff
sar eax, 1
mov word [ebp - 0x48], ax
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
sar ecx, 1
mov word [ebp - 0x14], cx
mov edx, dword [ebp - 0x58]
and edx, 0xff
test edx, edx
je 0x40ea7e
mov eax, dword [ebp - 0x14]
and eax, 0xffff
or ah, 0x80
mov word [ebp - 0x14], ax
mov ecx, dword [ebp - 0x5c]
and ecx, 0xff
test ecx, ecx
je 0x40ea9b
mov edx, dword [ebp - 0x48]
and edx, 0xffff
or dh, 0x80
mov word [ebp - 0x48], dx
jmp 0x40ea06
mov eax, dword [ebp - 0x14]
and eax, 0xffff
mov ecx, dword [ebp - 0x48]
and ecx, 0xffff
shl ecx, 0x10
or eax, ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov dword [ecx], eax
xor eax, eax
jmp 0x40f013
mov edx, dword [ebp - 0x44]
xor eax, eax
mov al, byte [edx + 2]
cmp eax, 2
je 0x40eb20
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov dl, byte [ecx + 2]
cmp edx, 5
je 0x40eb20
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov cl, byte [eax + 2]
cmp ecx, 0x1e
je 0x40eb20
mov edx, dword [ebp - 0x44]
xor eax, eax
mov al, byte [edx + 2]
cmp eax, 0x14
je 0x40eb20
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov dl, byte [ecx + 2]
cmp edx, 9
je 0x40eb20
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov cl, byte [eax + 2]
cmp ecx, 0xb
je 0x40eb20
mov edx, dword [ebp - 0x44]
xor eax, eax
mov al, byte [edx + 2]
cmp eax, 0x2d
jne 0x40eb38
push 4
mov cx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004111ca
add esp, 0xc
mov dword [ebp - 0x3c], eax
jmp 0x40eb4e
push 6
mov ax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004111ca
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40eb5f
mov eax, dword [ebp - 0x3c]
add eax, 0x28
jmp 0x40f013
mov edx, dword [ebp - 0x38]
xor eax, eax
mov ax, word [edx]
sar eax, 2
and eax, 0x3c
push eax
mov cx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004111ca
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40eb93
mov eax, dword [ebp - 0x3c]
add eax, 0x32
jmp 0x40f013
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov cx, word [eax]
shl ecx, 2
and ecx, 0x3c
push ecx
mov dx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004111ca
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40ebc7
mov eax, dword [ebp - 0x3c]
add eax, 0x32
jmp 0x40f013
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov dx, word [ecx]
sar edx, 0xa
and edx, 0x3c
push edx
mov ax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004111ca
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40ebfb
mov eax, dword [ebp - 0x3c]
add eax, 0x32
jmp 0x40f013
mov edx, dword [ebp - 0x38]
xor eax, eax
mov ax, word [edx]
sar eax, 6
and eax, 0x3c
push eax
mov cx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004111ca
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40ec2f
mov eax, dword [ebp - 0x3c]
add eax, 0x32
jmp 0x40f013
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov cx, word [eax + 0xc]
mov edx, dword [ebp - 0x4c]
and edx, 0xffff
add ecx, edx
sar ecx, 2
and ecx, 0x3c
push ecx
mov ax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004111ca
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40ec6f
mov eax, dword [ebp - 0x3c]
add eax, 0x3c
jmp 0x40f013
mov edx, dword [ebp - 0x44]
xor eax, eax
mov ax, word [edx + 0xc]
mov ecx, dword [ebp - 0x4c]
and ecx, 0xffff
add eax, ecx
shl eax, 2
and eax, 0x3c
push eax
mov dx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004111ca
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40ecaf
mov eax, dword [ebp - 0x3c]
add eax, 0x3c
jmp 0x40f013
push 0x100
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411c5b
add esp, 8
mov byte [ebp - 8], al
mov edx, dword [ebp - 8]
and edx, 0xff
sar edx, 2
and edx, 0x3c
push edx
mov ax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004111ca
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40ecf8
mov eax, dword [ebp - 0x3c]
add eax, 0x46
jmp 0x40f013
mov edx, dword [ebp - 8]
and edx, 0xff
shl edx, 2
and edx, 0x3c
push edx
mov ax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004111ca
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40ed2d
mov eax, dword [ebp - 0x3c]
add eax, 0x46
jmp 0x40f013
mov word [ebp - 0x10], 0
mov edx, dword [ebp - 0x44]
xor eax, eax
mov al, byte [edx + 2]
cmp eax, 2
je 0x40ed92
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov dl, byte [ecx + 2]
cmp edx, 5
je 0x40ed92
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov cl, byte [eax + 2]
cmp ecx, 0x1e
je 0x40ed92
mov edx, dword [ebp - 0x44]
xor eax, eax
mov al, byte [edx + 2]
cmp eax, 0x14
je 0x40ed92
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov dl, byte [ecx + 2]
cmp edx, 9
je 0x40ed92
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov cl, byte [eax + 2]
cmp ecx, 0xb
je 0x40ed92
mov edx, dword [ebp - 0x44]
xor eax, eax
mov al, byte [edx + 2]
cmp eax, 0x2d
jne 0x40ee5c
mov word [ebp - 0x28], 0
mov ecx, dword [ebp - 0x4c]
and ecx, 0xffff
mov edx, dword [ebp - 0x44]
xor eax, eax
mov ax, word [edx + 0xe]
cmp ecx, eax
jge 0x40ee57
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x28]
push edx
mov ax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411405
add esp, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x40ee01
mov edx, dword [ebp - 0x30]
and edx, 0xff
mov eax, dword [ebp - 8]
and eax, 0xff
xor edx, eax
mov ecx, dword [ebp - 0x4c]
and ecx, 0xffff
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov byte [ecx + eax], dl
mov cl, byte [ebp - 0x30]
mov byte [ebp - 8], cl
jmp 0x40ee1a
mov dx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004119c4
add esp, 8
mov eax, dword [ebp - 0x3c]
jmp 0x40f013
mov cx, word [ebp - 0x4c]
add cx, 1
mov word [ebp - 0x4c], cx
mov dx, word [ebp - 0x10]
add dx, 1
mov word [ebp - 0x10], dx
mov eax, dword [ebp - 0x10]
and eax, 0xffff
cmp eax, 0x14
jne 0x40ee52
mov cx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004119c4
add esp, 8
jmp 0x40ee57
jmp 0x40ed98
jmp 0x40efde
mov eax, dword [ebp - 0x4c]
and eax, 0xffff
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov dx, word [ecx + 0xe]
cmp eax, edx
jge 0x40efde
mov eax, dword [ebp - 0x4c]
and eax, 0xffff
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov dl, byte [eax + ecx + 0x10]
mov eax, dword [ebp - 8]
and eax, 0xff
xor edx, eax
mov byte [ebp - 0x40], dl
mov cl, byte [ebp - 0x40]
mov byte [ebp - 8], cl
mov edx, dword [ebp - 0x40]
and edx, 0xff
sar edx, 2
and edx, 0x3c
or edx, 2
push edx
mov ax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004111ca
add esp, 0xc
mov edx, dword [ebp - 0x4c]
and edx, 0xffff
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov cx, word [eax + 0xe]
sub ecx, 1
cmp edx, ecx
je 0x40eee4
mov edx, dword [ebp - 0x10]
and edx, 0xffff
cmp edx, 0x13
jne 0x40ef0b
mov eax, dword [ebp - 0x40]
and eax, 0xff
shl eax, 2
and eax, 0x3c
or al, 3
push eax
mov cx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004111ca
add esp, 0xc
mov dword [ebp - 0x3c], eax
jmp 0x40ef30
mov eax, dword [ebp - 0x40]
and eax, 0xff
shl eax, 2
and eax, 0x3c
or al, 2
push eax
mov cx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004111ca
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x40ef8a
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov cx, word [eax + 0xc]
mov edx, dword [ebp - 0x4c]
and edx, 0xffff
add ecx, edx
and ecx, 7
cmp ecx, 7
je 0x40ef77
mov eax, dword [ebp - 0x4c]
and eax, 0xffff
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov dx, word [ecx + 0xe]
sub edx, 1
cmp eax, edx
je 0x40ef77
mov eax, dword [ebp - 0x10]
and eax, 0xffff
cmp eax, 0x13
jne 0x40ef88
mov cx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00411b56
add esp, 8
jmp 0x40efa0
mov ax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004119c4
add esp, 8
mov eax, dword [ebp - 0x3c]
jmp 0x40f013
mov dx, word [ebp - 0x10]
add dx, 1
mov word [ebp - 0x10], dx
mov ax, word [ebp - 0x4c]
add ax, 1
mov word [ebp - 0x4c], ax
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
cmp ecx, 0x14
jne 0x40efd9
mov dx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004119c4
add esp, 8
jmp 0x40efde
jmp 0x40ee5c
mov ecx, dword [ebp - 0x4c]
and ecx, 0xffff
mov edx, dword [ebp - 0x44]
xor eax, eax
mov ax, word [edx + 0xe]
cmp ecx, eax
jne 0x40f009
mov cx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004119c4
add esp, 8
xor eax, eax
jmp 0x40f013
jmp 0x40e6f3
mov eax, 8
pop esi
mov esp, ebp
pop ebp
ret